26 ] ++ lib.optionals stdenv.hostPlatform.isx86_64 [
34 pname = "distrobuilder";
37 vendorHash = "sha256-pFrEkZnrcx0d3oM1klQrNHH+MiLvO4V1uFQdE0kXUqM=";
39 src = fetchFromGitHub {
41 repo = "distrobuilder";
42 rev = "refs/tags/distrobuilder-${version}";
43 sha256 = "sha256-JfME9VaqaQnrhnzhSLGUy9uU+tki1hXdnwqBUD/5XH0=";
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";