summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-05-24 15:07:38 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-05-24 15:07:38 +0000
commited2564f750a085cf1328645655dcab1c300bd37f (patch)
tree83a3bf410f6e1c6e819a45c8d9c1afb5d73cf3dd
parent0524b60614d49c96297afe54fc7acfc0e443b836 (diff)
* 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
-rw-r--r--pkgs/build-support/release/debian-build.nix1
1 files changed, 1 insertions, 0 deletions
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