at 22.05-pre 37 lines 799 B view raw
1{ lib, fetchFromGitHub, buildGoModule }: 2 3with lib; 4 5buildGoModule rec { 6 pname = "butane"; 7 version = "0.13.1"; 8 9 src = fetchFromGitHub { 10 owner = "coreos"; 11 repo = "butane"; 12 rev = "v${version}"; 13 sha256 = "sha256-wrz9+McHW2NNMsB3uOZIceykYBlSgl2WErAT8bMlkXo="; 14 }; 15 16 vendorSha256 = null; 17 18 doCheck = false; 19 20 subPackages = [ "internal" ]; 21 22 ldflags = [ 23 "-X github.com/coreos/butane/internal/version.Raw=v${version}" 24 ]; 25 26 postInstall = '' 27 mv $out/bin/{internal,butane} 28 ''; 29 30 meta = { 31 description = "Translates human-readable Butane configs into machine-readable Ignition configs"; 32 license = licenses.asl20; 33 homepage = "https://github.com/coreos/butane"; 34 maintainers = with maintainers; [ elijahcaine ruuda ]; 35 platforms = platforms.unix; 36 }; 37}