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