Created
December 29, 2024 18:14
-
-
Save Lillecarl/319df885188383022432854a8fa59f64 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
stdenv, | |
fetchFromGitHub, | |
cmake, | |
rust, | |
rustc, | |
cargo, | |
ncurses, | |
pcre2, | |
gettext, | |
rustPlatform, | |
symlinkJoin, | |
... | |
}: | |
let | |
pname = "fish-shell"; | |
version = "4.0b1"; | |
# src = fetchFromGitHub { | |
# owner = pname; | |
# repo = pname; | |
# rev = version; | |
# sha256 = "sha256-O5xZHXNrJMpjTA2mrTqzMtU/55UArwoc2adc0R6pVl0="; | |
# }; | |
src = /home/lillecarl/Code/fish-shell; | |
fish_rust = rustPlatform.buildRustPackage rec { | |
inherit pname version src; | |
doCheck = false; | |
doInstallCheck = false; | |
cargoLock = { | |
lockFile = "${src}/Cargo.lock"; | |
outputHashes = { | |
"pcre2-0.2.9" = "sha256-uYJgQuAKYaOdaMkI9MHf2viHT1BkFAaaG6v/vN3hElY="; | |
}; | |
}; | |
nativeBuildInputs = [ | |
cmake | |
rustc | |
cargo | |
gettext | |
]; | |
buildInputs = [ | |
ncurses | |
pcre2 | |
]; | |
cmakeFlakgs = [ | |
"-DFISH_USE_SYSTEM_PCRE2=1" | |
"-DCMAKE_INSTALL_DOCDIR=${placeholder "doc"}/share/doc/fish" | |
]; | |
}; | |
fish_rest = stdenv.mkDerivation { | |
inherit pname version src; | |
nativeBuildInputs = [ | |
cmake | |
rustc | |
cargo | |
gettext | |
]; | |
cmakeFlakgs = [ | |
"-DFISH_USE_SYSTEM_PCRE2=1" | |
"-DCMAKE_INSTALL_DOCDIR=${placeholder "doc"}/share/doc/fish" | |
]; | |
buildInputs = [ | |
ncurses | |
pcre2 | |
]; | |
}; | |
fish_combine = symlinkJoin { | |
inherit pname version; | |
paths = [ | |
fish_rust | |
fish_rest | |
]; | |
}; | |
in | |
fish_combine |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment