Skip to content

Commit

Permalink
cached-nix-shell: 0.1.3 -> 0.1.4 (#94567)
Browse files Browse the repository at this point in the history
* cached-nix-shell: 0.1.3 -> 0.1.4

* Apply suggestions from code review

Co-authored-by: Sandro <[email protected]>
  • Loading branch information
xzfc and SuperSandro2000 authored Nov 29, 2020
1 parent 5d75fe4 commit 2868e69
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions pkgs/tools/nix/cached-nix-shell/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ let

in rustPlatform.buildRustPackage rec {
pname = "cached-nix-shell";
version = "0.1.3";
version = "0.1.4";

src = fetchFromGitHub {
owner = "xzfc";
repo = pname;
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
# rather than as a standalone library.
Expand All @@ -29,14 +29,11 @@ in rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ ronn ];

postBuild = ''
ronn -r cached-nix-shell.1.md
make -f nix/Makefile post-build
'';

postInstall = ''
mkdir -p $out/lib $out/share/cached-nix-shell $out/share/man/man1 $out/var/empty
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
make -f nix/Makefile post-install
'';

meta = with stdenv.lib; {
Expand Down

0 comments on commit 2868e69

Please sign in to comment.