summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2019-12-19 10:10:29 -0500
committerGitHub <noreply@github.com>2019-12-19 10:10:29 -0500
commitc3b0e1268a3786b0ec00f1bd6accca5b1d57d550 (patch)
tree0c5c24f364337a57173552372838df243237d3a0 /pkgs
parent54d52ec0bfebe39e8032bb95484a9af311a6c66a (diff)
parentf42f6df759e1c4daedd8f2bd26e94c0b628dcab8 (diff)
downloadnixpkgs-c3b0e1268a3786b0ec00f1bd6accca5b1d57d550.tar
nixpkgs-c3b0e1268a3786b0ec00f1bd6accca5b1d57d550.tar.gz
nixpkgs-c3b0e1268a3786b0ec00f1bd6accca5b1d57d550.tar.bz2
nixpkgs-c3b0e1268a3786b0ec00f1bd6accca5b1d57d550.tar.lz
nixpkgs-c3b0e1268a3786b0ec00f1bd6accca5b1d57d550.tar.xz
nixpkgs-c3b0e1268a3786b0ec00f1bd6accca5b1d57d550.tar.zst
nixpkgs-c3b0e1268a3786b0ec00f1bd6accca5b1d57d550.zip
Merge pull request #75864 from marsam/fix-build-sqitchPg-darwin
sqitchPg: fix build on darwin
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/tools/misc/sqitch/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/tools/misc/sqitch/default.nix b/pkgs/development/tools/misc/sqitch/default.nix
index a077367622e..66d40ae3127 100644
--- a/pkgs/development/tools/misc/sqitch/default.nix
+++ b/pkgs/development/tools/misc/sqitch/default.nix
@@ -1,4 +1,4 @@
-{ name, stdenv, perl, makeWrapper, sqitchModule, databaseModule }:
+{ name, stdenv, perl, makeWrapper, sqitchModule, databaseModule, shortenPerlShebang }:
 
 stdenv.mkDerivation {
   name = "${name}-${sqitchModule.version}";
@@ -8,6 +8,8 @@ stdenv.mkDerivation {
   src = sqitchModule;
   dontBuild = true;
 
+  nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin shortenPerlShebang;
+
   installPhase = ''
     mkdir -p $out/bin
     for d in bin/sqitch etc lib share ; do
@@ -17,6 +19,8 @@ stdenv.mkDerivation {
         ln -s ${sqitchModule}/$d $out/$d
       fi
     done
+  '' + stdenv.lib.optionalString stdenv.isDarwin ''
+    shortenPerlShebang $out/bin/sqitch
   '';
   dontStrip = true;
   postFixup = "wrapProgram $out/bin/sqitch --prefix PERL5LIB : $PERL5LIB";