depot/third_party/nixpkgs/pkgs/development/tools/butane/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

34 lines
764 B
Nix

{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "butane";
version = "0.18.0";
src = fetchFromGitHub {
owner = "coreos";
repo = "butane";
rev = "v${version}";
hash = "sha256-HkvDJVSGve6t1gEek8FvfIK20r5TOHRJ71KsGUj95fM=";
};
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 ];
};
}