2020-06-19 08:57:40 +02:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2020-06-18 20:03:39 +02:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
2020-06-19 08:57:40 +02:00
|
|
|
buildGoModule rec {
|
2020-06-18 20:03:39 +02:00
|
|
|
pname = "fcct";
|
|
|
|
version = "0.6.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coreos";
|
|
|
|
repo = "fcct";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "18hmnip1s0smp58q500p8dfbrmi4i3nsyq22ri5cs53wbvz3ih1l";
|
|
|
|
};
|
|
|
|
|
2020-06-19 08:57:40 +02:00
|
|
|
deleteVendor = true;
|
|
|
|
vendorSha256 = "0qqkaskmyxgwv9qg3y5lckqf6nchn3bxp69fyqdbvki65p445608";
|
|
|
|
|
|
|
|
subPackages = [ "internal" ];
|
|
|
|
|
2020-06-18 20:03:39 +02:00
|
|
|
buildFlagsArray = ''
|
2020-06-19 08:57:40 +02:00
|
|
|
-ldflags=-X github.com/coreos/fcct/internal/version.Raw=v${version}
|
2020-06-18 20:03:39 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/{internal,fcct}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Translates Fedora CoreOS configs into Ignition configs";
|
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = "https://github.com/coreos/fcct";
|
|
|
|
maintainers = with maintainers; [ elijahcaine ruuda ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|