2021-01-25 08:26:54 +00:00
|
|
|
{ lib, pkg-config, buildGoPackage, fetchFromGitHub
|
2018-06-30 17:46:00 +01:00
|
|
|
, makeWrapper, coreutils, gnupg, gnutar, squashfsTools, debootstrap
|
|
|
|
}:
|
2018-05-09 20:02:47 +01:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
let binPath = lib.makeBinPath [
|
2018-06-30 17:46:00 +01:00
|
|
|
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 = ''
|
2020-04-28 02:50:57 +01:00
|
|
|
wrapProgram $out/bin/distrobuilder --prefix PATH ":" ${binPath}
|
2018-05-09 20:02:47 +01:00
|
|
|
'';
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config makeWrapper ];
|
2018-05-09 20:02:47 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-05-09 20:02:47 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|