container-linux-config-transpiler: init at 0.4.1 (#27486)

This commit is contained in:
Elijah Caine 2017-07-19 00:30:51 -07:00 committed by Jörg Thalheim
parent 699f8e2f65
commit 1fef42dde9
3 changed files with 38 additions and 0 deletions

View File

@ -172,6 +172,7 @@
ekleog = "Leo Gaspard <leo@gaspard.io>"; ekleog = "Leo Gaspard <leo@gaspard.io>";
elasticdog = "Aaron Bull Schaefer <aaron@elasticdog.com>"; elasticdog = "Aaron Bull Schaefer <aaron@elasticdog.com>";
eleanor = "Dejan Lukan <dejan@proteansec.com>"; eleanor = "Dejan Lukan <dejan@proteansec.com>";
elijahcaine = "Elijah Caine <elijahcainemv@gmail.com>";
elitak = "Eric Litak <elitak@gmail.com>"; elitak = "Eric Litak <elitak@gmail.com>";
ellis = "Ellis Whitehead <nixos@ellisw.net>"; ellis = "Ellis Whitehead <nixos@ellisw.net>";
eperuffo = "Emanuele Peruffo <info@emanueleperuffo.com>"; eperuffo = "Emanuele Peruffo <info@emanueleperuffo.com>";

View File

@ -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;
};
}

View File

@ -535,6 +535,8 @@ with pkgs;
bonnie = callPackage ../tools/filesystems/bonnie { }; bonnie = callPackage ../tools/filesystems/bonnie { };
container-linux-config-transpiler = callPackage ../development/tools/container-linux-config-transpiler { };
djmount = callPackage ../tools/filesystems/djmount { }; djmount = callPackage ../tools/filesystems/djmount { };
dgsh = callPackage ../shells/dgsh { }; dgsh = callPackage ../shells/dgsh { };