2018-07-21 02:44:44 +02:00
|
|
|
{ lib, fetchFromGitHub, buildGoPackage }:
|
2017-07-19 09:30:51 +02:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "ct";
|
2020-06-15 16:50:26 +02:00
|
|
|
version = "0.9.0";
|
2017-07-19 09:30:51 +02:00
|
|
|
|
|
|
|
goPackagePath = "github.com/coreos/container-linux-config-transpiler";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coreos";
|
|
|
|
repo = "container-linux-config-transpiler";
|
|
|
|
rev = "v${version}";
|
2020-06-15 16:50:26 +02:00
|
|
|
sha256="1w6nvgrl5qp3ci9igflk9dlk3020psv5m4f3p57f3qcx9vrcl4lw";
|
2017-07-19 09:30:51 +02:00
|
|
|
};
|
|
|
|
|
2021-08-26 05:31:57 +02:00
|
|
|
ldflags = [
|
|
|
|
"-X ${goPackagePath}/internal/version.Raw=v${version}"
|
|
|
|
];
|
2017-07-19 09:30:51 +02:00
|
|
|
|
|
|
|
postInstall = ''
|
2020-04-28 03:50:57 +02:00
|
|
|
mv $out/bin/{internal,ct}
|
|
|
|
rm $out/bin/tools
|
2017-07-19 09:30:51 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Convert a Container Linux Config into Ignition";
|
|
|
|
license = licenses.asl20;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/coreos/container-linux-config-transpiler";
|
2017-07-19 09:30:51 +02:00
|
|
|
maintainers = with maintainers; [elijahcaine];
|
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
}
|