depot/third_party/nixpkgs/pkgs/development/tools/butane/default.nix
Default email ca5ab3a501 Project import generated by Copybara.
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
2022-07-14 08:49:19 -04:00

37 lines
799 B
Nix

{ lib, fetchFromGitHub, buildGoModule }:
with lib;
buildGoModule rec {
pname = "butane";
version = "0.15.0";
src = fetchFromGitHub {
owner = "coreos";
repo = "butane";
rev = "v${version}";
sha256 = "sha256-Aa3IBLBJwSDaQ+BJakxBZB27yx0gelDoujWLaAaQ9VI=";
};
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;
};
}