@@ -18,12 +18,15 @@ in {
1818, configureFlags
1919 # mostly for moving and deleting files from the build directory
2020 # : lines
21−, postInstall
21+, postInstall ? ""
22+ # : lines
23+, postFixup ? ""
2224 # : list Maintainer
2325, maintainers ? []
24−
25−
26−}:
26+ # : attrs
27+, meta ? {}
28+, ...
29+} @ args:
2730
2831let
2932
@@ -50,16 +53,12 @@ let
5053 "README.*"
5154 ];
5255
53−in stdenv.mkDerivation {
54− name = "${pname}-${version}";
55−
56+in stdenv.mkDerivation ({
5657 src = fetchurl {
5758 url = "https://skarnet.org/software/${pname}/${pname}-${version}.tar.gz";
5859 inherit sha256;
5960 };
6061
61− inherit outputs;
62−
6362 dontDisableStatic = true;
6463 enableParallelBuilding = true;
6564
@@ -84,13 +83,11 @@ in stdenv.mkDerivation {
8483 noiseFiles = commonNoiseFiles;
8584 docFiles = commonMetaFiles;
8685 }} $doc/share/doc/${pname}
87−
88− ${postInstall}
89− '';
86+ '' + postInstall;
9087
9188 postFixup = ''
9289 ${cleanPackaging.checkForRemainingFiles}
93− '';
90+ '' + postFixup;
9491
9592 meta = {
9693 homepage = "https://skarnet.org/software/${pname}/";
@@ -98,6 +95,9 @@ in stdenv.mkDerivation {
9895 license = stdenv.lib.licenses.isc;
9996 maintainers = with lib.maintainers;
10097 [ pmahoney Profpatsch ] ++ maintainers;
101− };
98+ } // meta;
10299
103−}
100+} // builtins.removeAttrs args [
101+ "sha256" "configureFlags" "postInstall" "postFixup"
102+ "meta" "description" "platforms" "maintainers"
103+])