nixpkgs/pkgs/by-name/dg/dgoss/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.0 KiB
Nix
Raw Normal View History

2024-05-29 08:22:01 +00:00
{
bash,
coreutils,
gnused,
goss,
lib,
resholve,
which,
2021-05-03 15:12:50 +00:00
}:
resholve.mkDerivation rec {
2021-05-03 15:12:50 +00:00
pname = "dgoss";
2024-05-29 08:22:01 +00:00
version = goss.version;
src = goss.src;
2021-05-03 15:12:50 +00:00
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";
2024-05-29 08:22:01 +00:00
inputs = [
coreutils
gnused
which
];
keep = {
"$CONTAINER_RUNTIME" = true;
2021-05-03 15:12:50 +00:00
};
};
};
meta = with lib; {
2023-09-04 10:44:08 +00:00
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}";
2021-05-03 15:12:50 +00:00
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 ];
2023-11-27 01:17:53 +00:00
mainProgram = "dgoss";
2021-05-03 15:12:50 +00:00
};
}