2020-06-15 15:56:04 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
2021-04-15 00:37:46 +00:00
|
|
|
pname = "butane";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "0.22.0";
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coreos";
|
2021-04-15 00:37:46 +00:00
|
|
|
repo = "butane";
|
2020-06-15 15:56:04 +00:00
|
|
|
rev = "v${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-ELCERcgw01RcSMQjM0PL8CyTKrdfEPV9U8/RSf7YxCs=";
|
2020-06-15 15:56:04 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = null;
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
subPackages = [ "internal" ];
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X github.com/coreos/butane/internal/version.Raw=v${version}"
|
|
|
|
];
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
2021-04-15 00:37:46 +00:00
|
|
|
mv $out/bin/{internal,butane}
|
2020-06-15 15:56:04 +00:00
|
|
|
'';
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2021-04-15 00:37:46 +00:00
|
|
|
description = "Translates human-readable Butane configs into machine-readable Ignition configs";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "butane";
|
2020-06-15 15:56:04 +00:00
|
|
|
license = licenses.asl20;
|
2021-04-15 00:37:46 +00:00
|
|
|
homepage = "https://github.com/coreos/butane";
|
2020-06-15 15:56:04 +00:00
|
|
|
maintainers = with maintainers; [ elijahcaine ruuda ];
|
|
|
|
};
|
|
|
|
}
|