Initial
This commit is contained in:
commit
24a865004a
94 changed files with 6074 additions and 0 deletions
38
packages/luau-lsp.nix
Normal file
38
packages/luau-lsp.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ stdenv, lib, fetchFromGitHub, llvmPackages, cmake }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "luau-lsp";
|
||||
version = "1.42.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "JohnnyMorganz";
|
||||
repo = "luau-lsp";
|
||||
rev = "${version}";
|
||||
hash = "sha256-MX5jXkSxfN7IqY3kvlAKiimFecsuvCnCQ0QegISvAxE="; # Replace with "" to get the hash while running `fr`
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
#cmakeFlags = [
|
||||
# "-DCMAKE_BUILD_TYPE=Release"
|
||||
#];
|
||||
|
||||
#patchPhase = ''
|
||||
# sed -i '274d' luau/CMakeLists.txt
|
||||
# sed -i '23i set(CMAKE_CXX_FLAGS "$\{CMAKE_CXX_FLAGS} -w")' CMakeLists.txt
|
||||
#'';
|
||||
patchPhase = ''
|
||||
sed -i '274d' luau/CMakeLists.txt
|
||||
sed -i '113d' CMakeLists.txt
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-Wno-unused-result"
|
||||
cmake --build . --target Luau.LanguageServer.CLI --config Release
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp luau-lsp $out/bin/
|
||||
'';
|
||||
}
|
32
packages/luau.nix
Normal file
32
packages/luau.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ stdenv, lib, fetchFromGitHub, llvmPackages, cmake }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "luau";
|
||||
version = "0.667";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "luau-lang";
|
||||
repo = "luau";
|
||||
rev = "${version}";
|
||||
hash = "sha256-AEPUdqQ+uIWxSTOwwbZ8tWSz3VKKHa1D08o6oeEREkg="; # Replace with "" to get the hash while running `fr`
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
cmakeFlags = [
|
||||
"-DCMAKE_BUILD_TYPE=Release"
|
||||
];
|
||||
|
||||
buildInputs = [ llvmPackages.libunwind ];
|
||||
|
||||
#buildPhase = ''
|
||||
# cmake . -DCMAKE_BUILD_TYPE=Release
|
||||
# cmake --build . --target Luau.Repl.CLI Luau.Analyze.CLI Luau.Compile.CLI --config Release
|
||||
#'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp luau $out/bin/
|
||||
cp luau-analyze $out/bin/
|
||||
cp luau-compile $out/bin/
|
||||
'';
|
||||
}
|
23
packages/sddm-rose-pine.nix
Normal file
23
packages/sddm-rose-pine.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ stdenvNoCC, fetchFromGitHub, libsForQt5 }:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "sddm-rose-pine-theme";
|
||||
version = "1.2";
|
||||
dontBuild = true;
|
||||
|
||||
propagatedUserEnvPkgs = [
|
||||
libsForQt5.qt5.qtgraphicaleffects
|
||||
];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lwndhrst";
|
||||
repo = "sddm-rose-pine";
|
||||
rev = "v${version}";
|
||||
sha256 = "+WOdazvkzpOKcoayk36VLq/6lLOHDWkDykDsy8p87JE=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/sddm/themes
|
||||
cp -aR $src $out/share/sddm/themes/rose-pine
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue