2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, pkgconfig, buildGoPackage, fetchFromGitHub
|
2018-06-30 17:46:00 +01:00
|
|
|
, makeWrapper, coreutils, gnupg, gnutar, squashfsTools, debootstrap
|
|
|
|
}:
|
2018-05-09 20:02:47 +01:00
|
|
|
|
2018-06-30 17:46:00 +01:00
|
|
|
let binPath = stdenv.lib.makeBinPath [
|
|
|
|
coreutils gnupg gnutar squashfsTools debootstrap
|
|
|
|
];
|
|
|
|
in
|
2018-05-09 20:02:47 +01:00
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "distrobuilder";
|
2019-07-19 09:06:13 +01:00
|
|
|
version = "2019_10_07";
|
|
|
|
rev = "d686c88c21838f5505c3ec14711b2413604d7f5c";
|
2018-05-09 20:02:47 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/lxc/distrobuilder";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "lxc";
|
|
|
|
repo = "distrobuilder";
|
2019-07-19 09:06:13 +01:00
|
|
|
sha256 = "0k59czgasy4d58bkrin6hvgmh7y3nf177lwd0y4g47af27bgnyc4";
|
2018-05-09 20:02:47 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
|
|
|
postInstall = ''
|
2018-06-30 17:46:00 +01:00
|
|
|
wrapProgram $bin/bin/distrobuilder --prefix PATH ":" ${binPath}
|
2018-05-09 20:02:47 +01: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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|