mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
commit
3b6015f40e
3 changed files with 25 additions and 2 deletions
15
pkgs/development/tools/misc/sqitch/default.nix
Normal file
15
pkgs/development/tools/misc/sqitch/default.nix
Normal file
|
@ -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";
|
||||||
|
}
|
|
@ -7896,6 +7896,13 @@ let
|
||||||
|
|
||||||
planetary_annihilation = callPackage ../games/planetaryannihilation { };
|
planetary_annihilation = callPackage ../games/planetaryannihilation { };
|
||||||
|
|
||||||
|
sqitchPg = callPackage ../development/tools/misc/sqitch {
|
||||||
|
inherit stdenv perl makeWrapper;
|
||||||
|
name = "sqitch-pg";
|
||||||
|
databaseModule = perlPackages.DBDPg;
|
||||||
|
sqitchModule = perlPackages.AppSqitch;
|
||||||
|
};
|
||||||
|
|
||||||
### DEVELOPMENT / PYTHON MODULES
|
### DEVELOPMENT / PYTHON MODULES
|
||||||
|
|
||||||
# python function with default python interpreter
|
# python function with default python interpreter
|
||||||
|
|
|
@ -219,8 +219,9 @@ let self = _self // overrides; _self = with self; {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
AppSqitch = buildPerlModule {
|
AppSqitch = buildPerlModule rec {
|
||||||
name = "App-Sqitch-0.999";
|
version = "0.999";
|
||||||
|
name = "App-Sqitch-${version}";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = mirror://cpan/authors/id/D/DW/DWHEELER/App-Sqitch-0.999.tar.gz;
|
url = mirror://cpan/authors/id/D/DW/DWHEELER/App-Sqitch-0.999.tar.gz;
|
||||||
sha256 = "e7e02194a7b0c42fb4df046cd834d5eb99ff9a2c169f5c60a52c362e89351da6";
|
sha256 = "e7e02194a7b0c42fb4df046cd834d5eb99ff9a2c169f5c60a52c362e89351da6";
|
||||||
|
|
Loading…
Reference in a new issue