From 940eb8bfc16d244cf86bf4cb326ddfdde0cc53bb Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 8 Aug 2014 14:15:05 +0200 Subject: [PATCH] debBuild: Allow setting the package name and overriding the install command --- pkgs/build-support/release/debian-build.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/release/debian-build.nix b/pkgs/build-support/release/debian-build.nix index 168b44ad74c7..3adfe41031da 100644 --- a/pkgs/build-support/release/debian-build.nix +++ b/pkgs/build-support/release/debian-build.nix @@ -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 \;