depot/third_party/nixpkgs/pkgs/development/tools/container-linux-config-transpiler/default.nix
Default email 2ce89355c3 Project import generated by Copybara.
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
2020-06-15 17:56:04 +02:00

35 lines
839 B
Nix

{ lib, fetchFromGitHub, buildGoPackage }:
with lib;
buildGoPackage rec {
pname = "ct";
version = "0.9.0";
goPackagePath = "github.com/coreos/container-linux-config-transpiler";
src = fetchFromGitHub {
owner = "coreos";
repo = "container-linux-config-transpiler";
rev = "v${version}";
sha256="1w6nvgrl5qp3ci9igflk9dlk3020psv5m4f3p57f3qcx9vrcl4lw";
};
buildFlagsArray = ''
-ldflags=-X ${goPackagePath}/internal/version.Raw=v${version}
'';
postInstall = ''
mv $out/bin/{internal,ct}
rm $out/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;
};
}