diff options
author | Elijah Caine <voigte@osuosl.org> | 2017-07-19 00:30:51 -0700 |
---|---|---|
committer | Jörg Thalheim <Mic92@users.noreply.github.com> | 2017-07-19 08:30:51 +0100 |
commit | 1fef42dde9281810b2627158f18289f2ce528087 (patch) | |
tree | 8a776adc0f52445a8425e3666cc3effb2b42a2aa /pkgs/development/tools/container-linux-config-transpiler | |
parent | 699f8e2f656247311be27201ad297dc6ce6c9379 (diff) |
container-linux-config-transpiler: init at 0.4.1 (#27486)
Diffstat (limited to 'pkgs/development/tools/container-linux-config-transpiler')
-rw-r--r-- | pkgs/development/tools/container-linux-config-transpiler/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/tools/container-linux-config-transpiler/default.nix b/pkgs/development/tools/container-linux-config-transpiler/default.nix new file mode 100644 index 000000000000..eaae51f726bb --- /dev/null +++ b/pkgs/development/tools/container-linux-config-transpiler/default.nix @@ -0,0 +1,35 @@ +{ stdenv, lib, fetchFromGitHub, buildGoPackage }: + +with lib; + +buildGoPackage rec { + name = "ct-${version}"; + version = "0.4.1"; + + goPackagePath = "github.com/coreos/container-linux-config-transpiler"; + + src = fetchFromGitHub { + owner = "coreos"; + repo = "container-linux-config-transpiler"; + rev = "v${version}"; + sha256="1017xkinja30jcam8p1x2d9q4vkgkfn7gvkad004jkbbmd2216sa"; + }; + + 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; + }; +} + |