Author: eelco
Date: Thu May 24 15:07:38 2012
New Revision: 34220
URL: https://nixos.org/websvn/nix/?rev=34220&sc=1

Log:
* 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.

Modified:
   nixpkgs/trunk/pkgs/build-support/release/debian-build.nix

Modified: nixpkgs/trunk/pkgs/build-support/release/debian-build.nix
==============================================================================
--- nixpkgs/trunk/pkgs/build-support/release/debian-build.nix   Thu May 24 
15:03:54 2012        (r34219)
+++ nixpkgs/trunk/pkgs/build-support/release/debian-build.nix   Thu May 24 
15:07:38 2012        (r34220)
@@ -65,6 +65,7 @@
         --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
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to