nixpkgs/pkgs/development/tools/butane/default.nix

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

35 lines
762 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "butane";
2023-10-09 17:34:03 +00:00
version = "0.19.0";
src = fetchFromGitHub {
owner = "coreos";
repo = "butane";
rev = "v${version}";
2023-10-09 17:34:03 +00:00
hash = "sha256-v3HJpkfzGFii4hUfKRiFwcBcAObL1ItYw/9t8FO9gss=";
};
vendorHash = null;
doCheck = false;
subPackages = [ "internal" ];
2021-08-26 06:45:51 +00:00
ldflags = [
"-X github.com/coreos/butane/internal/version.Raw=v${version}"
];
postInstall = ''
mv $out/bin/{internal,butane}
'';
meta = with lib; {
description = "Translates human-readable Butane configs into machine-readable Ignition configs";
license = licenses.asl20;
homepage = "https://github.com/coreos/butane";
maintainers = with maintainers; [ elijahcaine ruuda ];
};
}