summary refs log tree commit diff
path: root/pkgs/tools/nix
diff options
context:
space:
mode:
authorxzfc <xzfc@users.noreply.github.com>2020-11-29 05:46:38 +0000
committerGitHub <noreply@github.com>2020-11-29 06:46:38 +0100
commit2868e690d8e773e2e07c65b994d0ca14074b1529 (patch)
tree364da172e271b05691ca91969c4cb5f133fdaa5f /pkgs/tools/nix
parent5d75fe4ed02c619f9ae7b7ef3528a96b8d3c19b1 (diff)
downloadnixpkgs-2868e690d8e773e2e07c65b994d0ca14074b1529.tar
nixpkgs-2868e690d8e773e2e07c65b994d0ca14074b1529.tar.gz
nixpkgs-2868e690d8e773e2e07c65b994d0ca14074b1529.tar.bz2
nixpkgs-2868e690d8e773e2e07c65b994d0ca14074b1529.tar.lz
nixpkgs-2868e690d8e773e2e07c65b994d0ca14074b1529.tar.xz
nixpkgs-2868e690d8e773e2e07c65b994d0ca14074b1529.tar.zst
nixpkgs-2868e690d8e773e2e07c65b994d0ca14074b1529.zip
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>
Diffstat (limited to 'pkgs/tools/nix')
-rw-r--r--pkgs/tools/nix/cached-nix-shell/default.nix13
1 files changed, 5 insertions, 8 deletions
diff --git a/pkgs/tools/nix/cached-nix-shell/default.nix b/pkgs/tools/nix/cached-nix-shell/default.nix
index 2db9ee6d9b3..0b40e2b7143 100644
--- a/pkgs/tools/nix/cached-nix-shell/default.nix
+++ b/pkgs/tools/nix/cached-nix-shell/default.nix
@@ -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.
@@ -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; {