2020-06-15 15:56:04 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
buildGoModule rec {
|
2021-04-15 00:37:46 +00:00
|
|
|
pname = "butane";
|
2021-07-17 21:14:59 +00:00
|
|
|
version = "0.13.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}";
|
2021-07-17 21:14:59 +00:00
|
|
|
sha256 = "0z1cq43dnj73k0idjhc310h00a1mryk2297w3yy6k1sa95swlz9m";
|
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" ];
|
|
|
|
|
|
|
|
buildFlagsArray = ''
|
2021-04-15 00:37:46 +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
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
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;
|
|
|
|
};
|
|
|
|
}
|