diff options
Diffstat (limited to 'pkgs/tools/virtualization/distrobuilder/default.nix')
-rw-r--r-- | pkgs/tools/virtualization/distrobuilder/default.nix | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/pkgs/tools/virtualization/distrobuilder/default.nix b/pkgs/tools/virtualization/distrobuilder/default.nix deleted file mode 100644 index 455e6f108c88..000000000000 --- a/pkgs/tools/virtualization/distrobuilder/default.nix +++ /dev/null @@ -1,79 +0,0 @@ -{ lib -, buildGoModule -, callPackage -, cdrkit -, coreutils -, debootstrap -, fetchFromGitHub -, gnupg -, gnutar -, hivex -, makeWrapper -, nixosTests -, pkg-config -, squashfsTools -, stdenv -, wimlib -}: - -let - bins = [ - coreutils - debootstrap - gnupg - gnutar - squashfsTools - ] ++ lib.optionals stdenv.isx86_64 [ - # repack-windows deps - cdrkit - hivex - wimlib - ]; -in -buildGoModule rec { - pname = "distrobuilder"; - version = "3.0"; - - vendorHash = "sha256-pFrEkZnrcx0d3oM1klQrNHH+MiLvO4V1uFQdE0kXUqM="; - - src = fetchFromGitHub { - owner = "lxc"; - repo = "distrobuilder"; - rev = "refs/tags/distrobuilder-${version}"; - sha256 = "sha256-JfME9VaqaQnrhnzhSLGUy9uU+tki1hXdnwqBUD/5XH0="; - fetchSubmodules = false; - }; - - buildInputs = bins; - - - # tests require a local keyserver (mkg20001/nixpkgs branch distrobuilder-with-tests) but gpg is currently broken in tests - doCheck = false; - - nativeBuildInputs = [ - pkg-config - makeWrapper - ] ++ bins; - - postInstall = '' - wrapProgram $out/bin/distrobuilder --prefix PATH ":" ${lib.makeBinPath bins} - ''; - - passthru = { - tests = { - incus-legacy-init = nixosTests.incus.container-legacy-init; - incus-systemd-init = nixosTests.incus.container-systemd-init; - }; - - generator = callPackage ./generator.nix { inherit src version; }; - }; - - meta = { - description = "System container image builder for LXC and LXD"; - homepage = "https://github.com/lxc/distrobuilder"; - license = lib.licenses.asl20; - maintainers = lib.teams.lxc.members; - platforms = lib.platforms.linux; - mainProgram = "distrobuilder"; - }; -} |