3
0
Fork 0
forked from mirrors/nixpkgs

* 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
This commit is contained in:
Eelco Dolstra 2012-05-24 15:07:38 +00:00
parent 0524b60614
commit ed2564f750

View file

@ -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