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