about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPol Dellaiera <pol.dellaiera@protonmail.com>2023-12-12 05:32:51 +0100
committerGitHub <noreply@github.com>2023-12-12 05:32:51 +0100
commitd9b360c144d728a51bb8e1f63d251eb1c0cd572d (patch)
treeb503a30c65d1ba12c23c4814baefe4aace734fad /pkgs
parentedea031f960e3647bd147c75ada3bb00638acb59 (diff)
parent507902558c92350919981c1a33d1928dd11446bc (diff)
downloadnixlib-d9b360c144d728a51bb8e1f63d251eb1c0cd572d.tar
nixlib-d9b360c144d728a51bb8e1f63d251eb1c0cd572d.tar.gz
nixlib-d9b360c144d728a51bb8e1f63d251eb1c0cd572d.tar.bz2
nixlib-d9b360c144d728a51bb8e1f63d251eb1c0cd572d.tar.lz
nixlib-d9b360c144d728a51bb8e1f63d251eb1c0cd572d.tar.xz
nixlib-d9b360c144d728a51bb8e1f63d251eb1c0cd572d.tar.zst
nixlib-d9b360c144d728a51bb8e1f63d251eb1c0cd572d.zip
Merge pull request #273322 from r-ryantm/auto-update/zef
zef: 0.21.0 -> 0.21.1
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/interpreters/rakudo/zef.nix39
1 files changed, 27 insertions, 12 deletions
diff --git a/pkgs/development/interpreters/rakudo/zef.nix b/pkgs/development/interpreters/rakudo/zef.nix
index 66ee788ca430..2ce4a164f7e6 100644
--- a/pkgs/development/interpreters/rakudo/zef.nix
+++ b/pkgs/development/interpreters/rakudo/zef.nix
@@ -1,35 +1,50 @@
-{ lib, stdenv, fetchFromGitHub, rakudo, makeWrapper }:
+{ lib
+, stdenv
+, fetchFromGitHub
+, rakudo
+, makeBinaryWrapper
+}:
 
-stdenv.mkDerivation rec {
+stdenv.mkDerivation (finalAttrs: {
   pname = "zef";
-  version = "0.21.0";
+  version = "0.21.1";
 
   src = fetchFromGitHub {
     owner = "ugexe";
     repo = "zef";
-    rev = "v${version}";
-    sha256 = "sha256-QVUnn9G28epoUEcK8mwm8S2wDQ/tv5B3Zds7bTUFwlw=";
+    rev = "v${finalAttrs.version}";
+    hash = "sha256-ji+KTxAOPZhuGryK0+svsVkU+HC1egKZWOboSBUON+s=";
   };
 
-  nativeBuildInputs = [ makeWrapper ];
-  buildInputs = [ rakudo ];
+  nativeBuildInputs = [
+    makeBinaryWrapper
+  ];
+
+  buildInputs = [
+    rakudo
+  ];
 
   installPhase = ''
+    runHook preInstall
+
     mkdir -p "$out"
     # TODO: Find better solution. zef stores cache stuff in $HOME with the
     # default config.
     env HOME=$TMPDIR ${rakudo}/bin/raku -I. ./bin/zef --/depends --/test-depends --/build-depends --install-to=$out install .
+
+    runHook postInstall
   '';
 
   postFixup =''
     wrapProgram $out/bin/zef --prefix RAKUDOLIB , "inst#$out"
   '';
 
-  meta = with lib; {
+  meta = {
     description = "Raku / Perl6 Module Management";
     homepage    = "https://github.com/ugexe/zef";
-    license     = licenses.artistic2;
-    platforms   = platforms.unix;
-    maintainers = with maintainers; [ sgo ];
+    license     = lib.licenses.artistic2;
+    mainProgram = "zef";
+    maintainers = with lib.maintainers; [ sgo ];
+    platforms   = lib.platforms.unix;
   };
-}
+})