depot/third_party/nixpkgs/pkgs/development/tools/butane/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

35 lines
798 B
Nix

{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "butane";
version = "0.17.0";
src = fetchFromGitHub {
owner = "coreos";
repo = "butane";
rev = "v${version}";
sha256 = "sha256-tLUC/1yD3vgId98UWiZOlud38uO+CUzp0uuYKkAXJEs=";
};
vendorSha256 = null;
doCheck = false;
subPackages = [ "internal" ];
ldflags = [
"-X github.com/coreos/butane/internal/version.Raw=v${version}"
];
postInstall = ''
mv $out/bin/{internal,butane}
'';
meta = with lib; {
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;
};
}