Merge master into staging-next

This commit is contained in:
Frederik Rietdijk
2019-12-16 20:28:10 +01:00
128 changed files with 3546 additions and 2291 deletions

View File

@@ -528,11 +528,9 @@ rec {
created ? "1970-01-01T00:00:01Z",
# Optional bash script to run on the files prior to fixturizing the layer.
extraCommands ? "", uid ? 0, gid ? 0,
# Docker's lowest maximum layer limit is 42-layers for an old
# version of the AUFS graph driver. We pick 24 to ensure there is
# plenty of room for extension. I believe the actual maximum is
# 128.
maxLayers ? 24
# We pick 100 to ensure there is plenty of room for extension. I
# believe the actual maximum is 128.
maxLayers ? 100
}:
let
baseName = baseNameOf name;

View File

@@ -236,7 +236,6 @@ rec {
name = "another-layered-image";
tag = "latest";
config.Cmd = [ "${pkgs.hello}/bin/hello" ];
contents = [ pkgs.hello ];
};
}

View File

@@ -18,12 +18,15 @@ in {
, configureFlags
# mostly for moving and deleting files from the build directory
# : lines
, postInstall
, postInstall ? ""
# : lines
, postFixup ? ""
# : list Maintainer
, maintainers ? []
}:
# : attrs
, meta ? {}
, ...
} @ args:
let
@@ -50,16 +53,12 @@ let
"README.*"
];
in stdenv.mkDerivation {
name = "${pname}-${version}";
in stdenv.mkDerivation ({
src = fetchurl {
url = "https://skarnet.org/software/${pname}/${pname}-${version}.tar.gz";
inherit sha256;
};
inherit outputs;
dontDisableStatic = true;
enableParallelBuilding = true;
@@ -84,13 +83,11 @@ in stdenv.mkDerivation {
noiseFiles = commonNoiseFiles;
docFiles = commonMetaFiles;
}} $doc/share/doc/${pname}
${postInstall}
'';
'' + postInstall;
postFixup = ''
${cleanPackaging.checkForRemainingFiles}
'';
'' + postFixup;
meta = {
homepage = "https://skarnet.org/software/${pname}/";
@@ -98,6 +95,9 @@ 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"
])