2020-06-15 15:56:04 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
2021-04-15 00:37:46 +00:00
|
|
|
pname = "butane";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "0.17.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}";
|
2023-01-11 07:51:40 +00:00
|
|
|
sha256 = "sha256-tLUC/1yD3vgId98UWiZOlud38uO+CUzp0uuYKkAXJEs=";
|
2020-06-15 15:56:04 +00:00
|
|
|
};
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
vendorSha256 = null;
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|