distrobuilder: 2019_10_07 -> 1.2
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
bb62664a1a
commit
110a85fd36
@ -1,31 +1,51 @@
|
||||
{ lib, pkg-config, buildGoPackage, fetchFromGitHub
|
||||
, makeWrapper, coreutils, gnupg, gnutar, squashfsTools, debootstrap
|
||||
{ lib
|
||||
, pkg-config
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, makeWrapper
|
||||
, coreutils
|
||||
, gnupg
|
||||
, gnutar
|
||||
, squashfsTools
|
||||
, debootstrap
|
||||
}:
|
||||
|
||||
let binPath = lib.makeBinPath [
|
||||
coreutils gnupg gnutar squashfsTools debootstrap
|
||||
];
|
||||
let
|
||||
bins = [
|
||||
coreutils
|
||||
gnupg
|
||||
gnutar
|
||||
squashfsTools
|
||||
debootstrap
|
||||
];
|
||||
in
|
||||
buildGoPackage rec {
|
||||
buildGoModule rec {
|
||||
pname = "distrobuilder";
|
||||
version = "2019_10_07";
|
||||
rev = "d686c88c21838f5505c3ec14711b2413604d7f5c";
|
||||
version = "1.2";
|
||||
|
||||
goPackagePath = "github.com/lxc/distrobuilder";
|
||||
vendorSha256 = "sha256-G5FUO6Ul4dA4MZZI9Ho1kE9ptX31tAWak9rWAoD/iuU=";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit rev;
|
||||
owner = "lxc";
|
||||
repo = "distrobuilder";
|
||||
sha256 = "0k59czgasy4d58bkrin6hvgmh7y3nf177lwd0y4g47af27bgnyc4";
|
||||
rev = "distrobuilder-${version}";
|
||||
sha256 = "CE3Tq0oWpVZnSfBBY3/2E2GdZLFsO0NzkPABT8lu+TY=";
|
||||
fetchSubmodules = false;
|
||||
};
|
||||
|
||||
goDeps = ./deps.nix;
|
||||
buildInputs = bins;
|
||||
|
||||
# tests require a local keyserver (mkg20001/nixpkgs branch distrobuilder-with-tests) but gpg is currently broken in tests
|
||||
doCheck = false;
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
makeWrapper
|
||||
] ++ bins;
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/distrobuilder --prefix PATH ":" ${binPath}
|
||||
wrapProgram $out/bin/distrobuilder --prefix PATH ":" ${lib.makeBinPath bins}
|
||||
'';
|
||||
nativeBuildInputs = [ pkg-config makeWrapper ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "System container image builder for LXC and LXD";
|
||||
@ -35,4 +55,3 @@ buildGoPackage rec {
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user