2018-07-21 01:44:44 +01:00
|
|
|
{ lib, fetchFromGitHub, buildGoPackage }:
|
2017-07-19 08:30:51 +01:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ct";
|
2018-03-27 06:59:24 +01:00
|
|
|
version = "0.7.0";
|
2017-07-19 08:30:51 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/coreos/container-linux-config-transpiler";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coreos";
|
|
|
|
repo = "container-linux-config-transpiler";
|
|
|
|
rev = "v${version}";
|
2018-03-27 06:59:24 +01:00
|
|
|
sha256="058zjk9yqgdli55gc6y48455il6wjpslyz2r2ckk2ki9c5qc8b7c";
|
2017-07-19 08:30:51 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=-X ${goPackagePath}/internal/version.Raw=v${version}
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $bin/bin/{internal,ct}
|
|
|
|
rm $bin/bin/tools
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Convert a Container Linux Config into Ignition";
|
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = https://github.com/coreos/container-linux-config-transpiler;
|
|
|
|
maintainers = with maintainers; [elijahcaine];
|
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|