summary refs log tree commit diff
path: root/pkgs/development/tools/misc/sqitch/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/tools/misc/sqitch/default.nix')
-rw-r--r--pkgs/development/tools/misc/sqitch/default.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/sqitch/default.nix b/pkgs/development/tools/misc/sqitch/default.nix
new file mode 100644
index 00000000000..0a1032cecf8
--- /dev/null
+++ b/pkgs/development/tools/misc/sqitch/default.nix
@@ -0,0 +1,15 @@
+{ name, stdenv, perl, makeWrapper, sqitchModule, databaseModule }:
+stdenv.mkDerivation {
+  name = "${name}-${sqitchModule.version}";
+  buildInputs = [ perl makeWrapper sqitchModule databaseModule ];
+  unpackPhase = ":";
+  buildPhase = ":";
+  installPhase = ''
+    mkdir -p $out/bin
+    for d in bin/sqitch etc lib share ; do
+      ln -s ${sqitchModule}/$d $out/$d
+    done
+  '';
+  dontStrip = true;
+  postFixup = "wrapProgram $out/bin/sqitch --prefix PERL5LIB : $PERL5LIB";
+}