mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
36 lines
790 B
Nix
36 lines
790 B
Nix
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
buildGoModule rec {
|
|
pname = "butane";
|
|
version = "0.20.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "coreos";
|
|
repo = "butane";
|
|
rev = "v${version}";
|
|
hash = "sha256-bSzXiA9dAMuljKCDpbWd1hSICNBAMCAUGPLH+0Sz1mA=";
|
|
};
|
|
|
|
vendorHash = 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";
|
|
mainProgram = "butane";
|
|
license = licenses.asl20;
|
|
homepage = "https://github.com/coreos/butane";
|
|
maintainers = with maintainers; [ elijahcaine ruuda ];
|
|
};
|
|
}
|