2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, pkgconfig, buildGoPackage, fetchFromGitHub
|
2018-06-30 18:46:00 +02:00
|
|
|
, makeWrapper, coreutils, gnupg, gnutar, squashfsTools, debootstrap
|
|
|
|
}:
|
2018-05-09 21:02:47 +02:00
|
|
|
|
2018-06-30 18:46:00 +02:00
|
|
|
let binPath = stdenv.lib.makeBinPath [
|
|
|
|
coreutils gnupg gnutar squashfsTools debootstrap
|
|
|
|
];
|
|
|
|
in
|
2018-05-09 21:02:47 +02:00
|
|
|
buildGoPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "distrobuilder";
|
2019-07-19 10:06:13 +02:00
|
|
|
version = "2019_10_07";
|
|
|
|
rev = "d686c88c21838f5505c3ec14711b2413604d7f5c";
|
2018-05-09 21:02:47 +02:00
|
|
|
|
|
|
|
goPackagePath = "github.com/lxc/distrobuilder";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "lxc";
|
|
|
|
repo = "distrobuilder";
|
2019-07-19 10:06:13 +02:00
|
|
|
sha256 = "0k59czgasy4d58bkrin6hvgmh7y3nf177lwd0y4g47af27bgnyc4";
|
2018-05-09 21:02:47 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
|
|
|
postInstall = ''
|
2018-06-30 18:46:00 +02:00
|
|
|
wrapProgram $bin/bin/distrobuilder --prefix PATH ":" ${binPath}
|
2018-05-09 21:02:47 +02:00
|
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkgconfig makeWrapper ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "System container image builder for LXC and LXD";
|
|
|
|
homepage = "https://github.com/lxc/distrobuilder";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ megheaiulian ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|