2022-09-11 15:47:08 +00:00
|
|
|
|
{ stdenvNoCC, lib, fetchFromGitHub, makeWrapper, wget }:
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
|
pname = "distrobox";
|
2022-10-06 18:32:54 +00:00
|
|
|
|
version = "1.4.1";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "89luca89";
|
|
|
|
|
repo = pname;
|
|
|
|
|
rev = version;
|
2022-10-06 18:32:54 +00:00
|
|
|
|
sha256 = "sha256-WIpl3eSdResAmWFc8OG8Jm0uLTGaovkItGAZTOEzhuE=";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
2022-09-11 15:47:08 +00:00
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2022-03-05 16:20:37 +00:00
|
|
|
|
installPhase = ''
|
|
|
|
|
runHook preInstall
|
|
|
|
|
|
2022-09-11 15:47:08 +00:00
|
|
|
|
# https://github.com/89luca89/distrobox/issues/408
|
|
|
|
|
substituteInPlace ./distrobox-generate-entry \
|
|
|
|
|
--replace 'icon_default="''${HOME}/.local' "icon_default=\"$out"
|
|
|
|
|
./install -P $out
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
|
'';
|
|
|
|
|
|
2022-09-11 15:47:08 +00:00
|
|
|
|
# https://github.com/89luca89/distrobox/issues/407
|
|
|
|
|
postFixup = ''
|
|
|
|
|
wrapProgram "$out/bin/distrobox-generate-entry" \
|
|
|
|
|
--prefix PATH ":" ${lib.makeBinPath [ wget ]}
|
|
|
|
|
'';
|
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
|
meta = with lib; {
|
|
|
|
|
description = "Wrapper around podman or docker to create and start containers";
|
|
|
|
|
longDescription = ''
|
|
|
|
|
Use any linux distribution inside your terminal. Enable both backward and
|
|
|
|
|
forward compatibility with software and freedom to use whatever distribution
|
|
|
|
|
you’re more comfortable with
|
|
|
|
|
'';
|
|
|
|
|
homepage = "https://distrobox.privatedns.org/";
|
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
|
platforms = platforms.all;
|
|
|
|
|
maintainers = with maintainers; [ atila ];
|
|
|
|
|
};
|
|
|
|
|
}
|