2020-06-18 23:57:40 -07:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2020-06-18 11:03:39 -07:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
2020-06-18 23:57:40 -07:00
|
|
|
buildGoModule rec {
|
2020-06-18 11:03:39 -07:00
|
|
|
pname = "fcct";
|
2021-01-07 10:20:23 -08:00
|
|
|
version = "0.9.0";
|
2020-06-18 11:03:39 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coreos";
|
|
|
|
repo = "fcct";
|
|
|
|
rev = "v${version}";
|
2021-01-07 10:20:23 -08:00
|
|
|
sha256 = "0kdsnsp9nzkkfwakcx64md66yz2k7cpw8bkhdv798yirbrqprgp6";
|
2020-06-18 11:03:39 -07:00
|
|
|
};
|
|
|
|
|
2020-07-18 00:21:18 -07:00
|
|
|
vendorSha256 = null;
|
2020-06-18 23:57:40 -07:00
|
|
|
|
2020-08-03 17:26:27 -07:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-06-18 23:57:40 -07:00
|
|
|
subPackages = [ "internal" ];
|
|
|
|
|
2020-06-18 11:03:39 -07:00
|
|
|
buildFlagsArray = ''
|
2020-06-18 23:57:40 -07:00
|
|
|
-ldflags=-X github.com/coreos/fcct/internal/version.Raw=v${version}
|
2020-06-18 11:03:39 -07: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;
|
|
|
|
};
|
|
|
|
}
|