From ed2564f750a085cf1328645655dcab1c300bd37f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 24 May 2012 15:07:38 +0000 Subject: * Set the version number of generated Debian packages. Note that dpkg apparently doesn't allows underscores in version strings, so we replace them by dashes. This is the exact opposite of RPM, which doesn't allow dashes. svn path=/nixpkgs/trunk/; revision=34220 --- pkgs/build-support/release/debian-build.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'pkgs') diff --git a/pkgs/build-support/release/debian-build.nix b/pkgs/build-support/release/debian-build.nix index 8d2ea849a09f..0095a2ff8818 100644 --- a/pkgs/build-support/release/debian-build.nix +++ b/pkgs/build-support/release/debian-build.nix @@ -65,6 +65,7 @@ vmTools.runInLinuxImage (stdenv.mkDerivation ( --fstrans=${if fsTranslation then "yes" else "no"} \ --requires="${concatStringsSep "," debRequires}" \ --provides="${concatStringsSep "," debProvides}" \ + ${optionalString (src ? version) "--pkgversion=$(echo ${src.version} | tr _ -)"} \ make install mkdir -p $out/debs -- cgit v1.2.3