2020-06-15 15:56:04 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
2021-04-15 00:37:46 +00:00
|
|
|
pname = "butane";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.20.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-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-bSzXiA9dAMuljKCDpbWd1hSICNBAMCAUGPLH+0Sz1mA=";
|
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";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|