debBuild: Allow setting the package name and overriding the install command

This commit is contained in:
Eelco Dolstra 2014-08-08 14:15:05 +02:00
parent 8b7f2af950
commit 940eb8bfc1

View File

@ -60,8 +60,10 @@ vmTools.runInLinuxImage (stdenv.mkDerivation (
--provides="${concatStringsSep "," debProvides}" \
${optionalString (src ? version) "--pkgversion=$(echo ${src.version} | tr _ -)"} \
''${debMaintainer:+--maintainer="'$debMaintainer'"} \
''${debName:+--pkgname="'$debName'"} \
$checkInstallFlags \
make install
-- \
$SHELL -c "''${installCommand:-make install}"
mkdir -p $out/debs
find . -name "*.deb" -exec cp {} $out/debs \;