From f7282b61c3efbc7ce3236344580c88e594f7bc79 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 5 Nov 2009 14:40:25 +0000 Subject: [PATCH] * Allow additional Deb provides/requires to be specified. svn path=/nixpkgs/trunk/; revision=18139 --- pkgs/build-support/release/debian-build.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/build-support/release/debian-build.nix b/pkgs/build-support/release/debian-build.nix index 2dae9742467..75e26efa0b3 100644 --- a/pkgs/build-support/release/debian-build.nix +++ b/pkgs/build-support/release/debian-build.nix @@ -5,6 +5,10 @@ , diskImage , src, stdenv, vmTools, checkinstall , fsTranslation ? false +, # Features provided by this package. + debProvides ? [] +, # Features required by this package. + debRequires ? [] , ... } @ args: vmTools.runInLinuxImage (stdenv.mkDerivation ( @@ -56,6 +60,8 @@ vmTools.runInLinuxImage (stdenv.mkDerivation ( ${checkinstall}/sbin/checkinstall --nodoc -y -D \ --fstrans=${if fsTranslation then "yes" else "no"} \ + --requires="${toString debRequires}" \ + --provides="${toString debProvides}" \ make install ensureDir $out/debs