1 { stdenvNoCC, lib, fetchFromGitHub, makeWrapper, wget }:
3 stdenvNoCC.mkDerivation (finalAttrs: {
7 src = fetchFromGitHub {
10 rev = finalAttrs.version;
11 hash = "sha256-H2jeKs0h4ZAcP33HB5jptlubq62cwnjPK2wSlEIfFWA=";
17 nativeBuildInputs = [ makeWrapper ];
22 # https://github.com/89luca89/distrobox/issues/408
23 substituteInPlace ./distrobox-generate-entry \
24 --replace-fail 'icon_default="''${HOME}/.local' "icon_default=\"$out"
30 # https://github.com/89luca89/distrobox/issues/407
32 wrapProgram "$out/bin/distrobox-generate-entry" \
33 --prefix PATH ":" ${lib.makeBinPath [ wget ]}
35 mkdir -p $out/share/distrobox
36 echo 'container_additional_volumes="/nix:/nix"' > $out/share/distrobox/distrobox.conf
40 description = "Wrapper around podman or docker to create and start containers";
42 Use any linux distribution inside your terminal. Enable both backward and
43 forward compatibility with software and freedom to use whatever distribution
44 you’re more comfortable with
46 homepage = "https://distrobox.it/";
47 license = licenses.gpl3Only;
48 platforms = platforms.linux;
49 maintainers = with maintainers; [ atila ];