nixpkgs/pkgs/development/tools/butane/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
799 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoModule }:
with lib;
buildGoModule rec {
pname = "butane";
2022-07-06 07:02:15 +00:00
version = "0.15.0";
src = fetchFromGitHub {
owner = "coreos";
repo = "butane";
rev = "v${version}";
2022-07-06 07:02:15 +00:00
sha256 = "sha256-Aa3IBLBJwSDaQ+BJakxBZB27yx0gelDoujWLaAaQ9VI=";
};
vendorSha256 = null;
doCheck = false;
subPackages = [ "internal" ];
2021-08-26 06:45:51 +00:00
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;
};
}