mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
debian_devscripts 2.12.4 -> 2.15.3
Was touched by 55edae1
but tarball had vanished.
This commit is contained in:
parent
e74e572331
commit
f1d030cf7d
1 changed files with 10 additions and 7 deletions
|
@ -1,20 +1,22 @@
|
||||||
{stdenv, fetchurl, perl, CryptSSLeay, LWP, unzip, xz, dpkg, TimeDate, DBFile
|
{stdenv, fetchurl, perl, CryptSSLeay, LWP, unzip, xz, dpkg, TimeDate, DBFile
|
||||||
, FileDesktopEntry, libxslt, docbook_xsl, python, setuptools, makeWrapper
|
, FileDesktopEntry, libxslt, docbook_xsl, python3, setuptools, makeWrapper
|
||||||
|
, perlPackages
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "2.12.4";
|
version = "2.15.3";
|
||||||
name = "debian-devscripts-${version}";
|
name = "debian-devscripts-${version}";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://debian/pool/main/d/devscripts/devscripts_${version}.tar.gz";
|
url = "mirror://debian/pool/main/d/devscripts/devscripts_${version}.tar.xz";
|
||||||
sha256 = "34bcbec78bd4fe34d9f1326b9d1477ff2410e20e2dca6b7bfbf2bf92dbb83904";
|
sha256 = "f589e2e02c5e9a46a77b2516155631ac3ddfd8a39bcfc16c920862583850bc7d";
|
||||||
};
|
};
|
||||||
buildInputs = [ perl CryptSSLeay LWP unzip xz dpkg TimeDate DBFile
|
buildInputs = [ perl CryptSSLeay LWP unzip xz dpkg TimeDate DBFile
|
||||||
FileDesktopEntry libxslt python setuptools makeWrapper ];
|
FileDesktopEntry libxslt python3 setuptools makeWrapper
|
||||||
|
perlPackages.ParseDebControl ];
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
export PERL5LIB="$PERL5LIB''${PERL5LIB:+:}${dpkg}";
|
export PERL5LIB="$PERL5LIB''${PERL5LIB:+:}${dpkg}";
|
||||||
sed -e "s@/usr/share/sgml/[^ ]*/manpages/docbook.xsl@${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl@" -i scripts/Makefile
|
sed -e "s@/usr/share/sgml/[^ ]*/manpages/docbook.xsl@${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl@" -i scripts/Makefile
|
||||||
sed -e 's/ translated_manpages//; s/--install-layout=deb//; s@--root="[^ ]*"@--prefix="'"$out"'"@' -i Makefile */Makefile
|
sed -e 's/ translated_manpages//; s/--install-layout=deb//; s@--root="[^ ]*"@--prefix="'"$out"'"@' -i Makefile */Makefile
|
||||||
tgtpy="$out/lib/${python.libPrefix}/site-packages"
|
tgtpy="$out/lib/${python3.libPrefix}/site-packages"
|
||||||
mkdir -p "$tgtpy"
|
mkdir -p "$tgtpy"
|
||||||
export PYTHONPATH="$PYTHONPATH''${PYTHONPATH:+:}$tgtpy"
|
export PYTHONPATH="$PYTHONPATH''${PYTHONPATH:+:}$tgtpy"
|
||||||
sed -re "s@/usr( |$|/)@$out\\1@" -i Makefile* */Makefile*
|
sed -re "s@/usr( |$|/)@$out\\1@" -i Makefile* */Makefile*
|
||||||
|
@ -25,7 +27,8 @@ stdenv.mkDerivation rec {
|
||||||
for i in "$out/bin"/*; do
|
for i in "$out/bin"/*; do
|
||||||
wrapProgram "$i" \
|
wrapProgram "$i" \
|
||||||
--prefix PERL5LIB : "$PERL5LIB" \
|
--prefix PERL5LIB : "$PERL5LIB" \
|
||||||
--prefix PERL5LIB : "$out/share/devscripts"
|
--prefix PERL5LIB : "$out/share/devscripts" \
|
||||||
|
--prefix PYTHONPATH : "$out/lib/python3.4/site-packages"
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
meta = {
|
meta = {
|
||||||
|
|
Loading…
Reference in a new issue