c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
37 lines
799 B
Nix
37 lines
799 B
Nix
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
with lib;
|
|
|
|
buildGoModule rec {
|
|
pname = "butane";
|
|
version = "0.16.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "coreos";
|
|
repo = "butane";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-PjuQ5eEW/CdghkVHozxrG9WPNKJZwUcf7/ZRIcUAtJY=";
|
|
};
|
|
|
|
vendorSha256 = null;
|
|
|
|
doCheck = false;
|
|
|
|
subPackages = [ "internal" ];
|
|
|
|
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;
|
|
};
|
|
}
|