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