From 894c74da1ffc8c71be748db6146cb315b8f33e32 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sun, 22 Mar 2020 21:58:11 +0100 Subject: [PATCH] Revert "buildSkawarePackage: pass through extra args" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit a50653295df5e2565b4a6a316923f9e939f1945b. The reasons cited were “debugging”, in which case you can just add the attribute to `buildSkawarePackage` and “customizing”, which is still possible with a normal `overrideDerivation`. The patch removed `outputs` for some reason (possible oversight), so building nsss failed. Plus lots of complexity (e.g. don’t forget to add new arguments to `removeAttrs` otherwise there’s a bug now). --- .../skaware/build-skaware-package.nix | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/pkgs/build-support/skaware/build-skaware-package.nix b/pkgs/build-support/skaware/build-skaware-package.nix index 9e4456a3a15..9b159a994c8 100644 --- a/pkgs/build-support/skaware/build-skaware-package.nix +++ b/pkgs/build-support/skaware/build-skaware-package.nix @@ -18,15 +18,12 @@ in { , configureFlags # mostly for moving and deleting files from the build directory # : lines -, postInstall ? "" - # : lines -, postFixup ? "" +, postInstall # : list Maintainer , maintainers ? [] - # : attrs -, meta ? {} -, ... -} @ args: + + +}: let @@ -53,12 +50,16 @@ let "README.*" ]; -in stdenv.mkDerivation ({ +in stdenv.mkDerivation { + name = "${pname}-${version}"; + src = fetchurl { url = "https://skarnet.org/software/${pname}/${pname}-${version}.tar.gz"; inherit sha256; }; + inherit outputs; + dontDisableStatic = true; enableParallelBuilding = true; @@ -83,11 +84,13 @@ in stdenv.mkDerivation ({ noiseFiles = commonNoiseFiles; docFiles = commonMetaFiles; }} $doc/share/doc/${pname} - '' + postInstall; + + ${postInstall} + ''; postFixup = '' ${cleanPackaging.checkForRemainingFiles} - '' + postFixup; + ''; meta = { homepage = "https://skarnet.org/software/${pname}/"; @@ -95,9 +98,6 @@ in stdenv.mkDerivation ({ license = stdenv.lib.licenses.isc; maintainers = with lib.maintainers; [ pmahoney Profpatsch ] ++ maintainers; - } // meta; + }; -} // builtins.removeAttrs args [ - "sha256" "configureFlags" "postInstall" "postFixup" - "meta" "description" "platforms" "maintainers" -]) +}