cached-nix-shell: 0.1.3 -> 0.1.4 (#94567)
* cached-nix-shell: 0.1.3 -> 0.1.4 * Apply suggestions from code review Co-authored-by: Sandro <sandro.jaeckel@gmail.com>gstqt5
parent
5d75fe4ed0
commit
2868e690d8
|
@ -10,16 +10,16 @@ let
|
||||||
|
|
||||||
in rustPlatform.buildRustPackage rec {
|
in rustPlatform.buildRustPackage rec {
|
||||||
pname = "cached-nix-shell";
|
pname = "cached-nix-shell";
|
||||||
version = "0.1.3";
|
version = "0.1.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "xzfc";
|
owner = "xzfc";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1ni671wr2lrvyz6myaz3v4llrjvq4jc1ygw1m7rvnadzyf3va3lw";
|
sha256 = "0w6khry1ncyqy5h6996xw1f6viw4wdrfji5m8lz9gm487xlq5v0b";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "19i39b1yqdf81ql4psr3nfah6ci2mw3ljkv740clqmz088j2av8g";
|
cargoSha256 = "0d4fz0rhqy1n30wfl2pmf76zpp21agr3h0hswp3r5bfnxqp6i54h";
|
||||||
|
|
||||||
# The BLAKE3 C library is intended to be built by the project depending on it
|
# The BLAKE3 C library is intended to be built by the project depending on it
|
||||||
# rather than as a standalone library.
|
# rather than as a standalone library.
|
||||||
|
@ -29,14 +29,11 @@ in rustPlatform.buildRustPackage rec {
|
||||||
nativeBuildInputs = [ ronn ];
|
nativeBuildInputs = [ ronn ];
|
||||||
|
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
ronn -r cached-nix-shell.1.md
|
make -f nix/Makefile post-build
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/lib $out/share/cached-nix-shell $out/share/man/man1 $out/var/empty
|
make -f nix/Makefile post-install
|
||||||
cp $releaseDir/build/cached-nix-shell-*/out/trace-nix.so $out/lib
|
|
||||||
cp rcfile.sh $out/share/cached-nix-shell/rcfile.sh
|
|
||||||
cp cached-nix-shell.1 $out/share/man/man1
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|
Loading…
Reference in New Issue