26 ] ++ lib.optionals stdenv.hostPlatform.isx86_64 [
34 pname = "distrobuilder";
37 vendorHash = "sha256-3oHLvOdHbOdaL2FTo+a5HmayNi/i3zoAsU/du9h1N30=";
39 src = fetchFromGitHub {
41 repo = "distrobuilder";
42 rev = "refs/tags/distrobuilder-${version}";
43 sha256 = "sha256-cIzIoLQmg1kgI1QRAmFh/ca88PJBW2yIY92BKHKwTMk=";
44 fetchSubmodules = false;
50 # tests require a local keyserver (mkg20001/nixpkgs branch distrobuilder-with-tests) but gpg is currently broken in tests
59 wrapProgram $out/bin/distrobuilder --prefix PATH ":" ${lib.makeBinPath bins}
64 incus-legacy-init = nixosTests.incus.container-legacy-init;
65 incus-systemd-init = nixosTests.incus.container-systemd-init;
68 generator = callPackage ./generator.nix { inherit src version; };
72 description = "System container image builder for LXC and LXD";
73 homepage = "https://github.com/lxc/distrobuilder";
74 license = lib.licenses.asl20;
75 maintainers = lib.teams.lxc.members;
76 platforms = lib.platforms.linux;
77 mainProgram = "distrobuilder";