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