diff --git a/pkgs/by-name/de/debian-devscripts/package.nix b/pkgs/by-name/de/debian-devscripts/package.nix index 2d92cac2eea7..ec27b1091aba 100644 --- a/pkgs/by-name/de/debian-devscripts/package.nix +++ b/pkgs/by-name/de/debian-devscripts/package.nix @@ -27,13 +27,13 @@ let exec ''${EDITOR-${nano}/bin/nano} "$@" ''; in -stdenv.mkDerivation rec { - version = "2.23.5"; +stdenv.mkDerivation (finalAttrs: { pname = "debian-devscripts"; + version = "2.25.10"; src = fetchurl { - url = "mirror://debian/pool/main/d/devscripts/devscripts_${version}.tar.xz"; - hash = "sha256-j0fUVTS/lPKFdgeMhksiJz2+E5koB07IK2uEj55EWG0="; + url = "mirror://debian/pool/main/d/devscripts/devscripts_${finalAttrs.version}.tar.xz"; + hash = "sha256-pEzXrKV/bZbYG7j5QXjRDATZRGLt0fhdpwTDbCoKcus="; }; patches = [ @@ -45,15 +45,19 @@ stdenv.mkDerivation rec { ]; postPatch = '' - substituteInPlace scripts/Makefile --replace /usr/share/dpkg ${dpkg}/share/dpkg - substituteInPlace scripts/debrebuild.pl --replace /usr/bin/perl ${perlPackages.perl}/bin/perl + substituteInPlace scripts/debrebuild.pl \ + --replace-fail "/usr/bin/perl" "${perlPackages.perl}/bin/perl" patchShebangs scripts + # Remove man7 target to avoid missing *.7 file error + substituteInPlace doc/Makefile \ + --replace-fail " install_man7" "" ''; nativeBuildInputs = [ makeWrapper pkg-config ]; + buildInputs = [ xz @@ -121,15 +125,14 @@ stdenv.mkDerivation rec { --prefix PYTHONPATH : "$out/${python.sitePackages}" \ --prefix PATH : "${dpkg}/bin" done - ln -s cvs-debi $out/bin/cvs-debc ln -s debchange $out/bin/dch ln -s pts-subscribe $out/bin/pts-unsubscribe ''; - meta = with lib; { + meta = { description = "Debian package maintenance scripts"; - license = licenses.free; # Mix of public domain, Artistic+GPL, GPL1+, GPL2+, GPL3+, and GPL2-only... TODO - maintainers = with maintainers; [ raskin ]; - platforms = platforms.unix; + license = lib.licenses.free; # Mix of public domain, Artistic+GPL, GPL1+, GPL2+, GPL3+, and GPL2-only... TODO + maintainers = with lib.maintainers; [ raskin ]; + platforms = lib.platforms.unix; }; -} +})