841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
37 lines
817 B
Nix
37 lines
817 B
Nix
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
with lib;
|
|
|
|
buildGoModule rec {
|
|
pname = "butane";
|
|
version = "0.12.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "coreos";
|
|
repo = "butane";
|
|
rev = "v${version}";
|
|
sha256 = "1bgh7h3hwrgjkw72233qzqpkshzbizhdapa0lalzj1xnclq3rqlp";
|
|
};
|
|
|
|
vendorSha256 = null;
|
|
|
|
doCheck = false;
|
|
|
|
subPackages = [ "internal" ];
|
|
|
|
buildFlagsArray = ''
|
|
-ldflags=-X github.com/coreos/butane/internal/version.Raw=v${version}
|
|
'';
|
|
|
|
postInstall = ''
|
|
mv $out/bin/{internal,butane}
|
|
'';
|
|
|
|
meta = {
|
|
description = "Translates human-readable Butane configs into machine-readable Ignition configs";
|
|
license = licenses.asl20;
|
|
homepage = "https://github.com/coreos/butane";
|
|
maintainers = with maintainers; [ elijahcaine ruuda ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|