fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
48 lines
1 KiB
Nix
48 lines
1 KiB
Nix
{
|
|
bash,
|
|
coreutils,
|
|
gnused,
|
|
goss,
|
|
lib,
|
|
resholve,
|
|
which,
|
|
}:
|
|
|
|
resholve.mkDerivation rec {
|
|
pname = "dgoss";
|
|
version = goss.version;
|
|
src = goss.src;
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
sed -i '2i GOSS_PATH=${goss}/bin/goss' extras/dgoss/dgoss
|
|
install -D extras/dgoss/dgoss $out/bin/dgoss
|
|
'';
|
|
|
|
solutions = {
|
|
default = {
|
|
scripts = [ "bin/dgoss" ];
|
|
interpreter = "${bash}/bin/bash";
|
|
inputs = [
|
|
coreutils
|
|
gnused
|
|
which
|
|
];
|
|
keep = {
|
|
"$CONTAINER_RUNTIME" = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/goss-org/goss/blob/v${version}/extras/dgoss/README.md";
|
|
changelog = "https://github.com/goss-org/goss/releases/tag/v${version}";
|
|
description = "Convenience wrapper around goss that aims to bring the simplicity of goss to docker containers";
|
|
license = licenses.asl20;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ hyzual anthonyroussel ];
|
|
mainProgram = "dgoss";
|
|
};
|
|
}
|