2022-09-11 15:47:08 +00:00
|
|
|
|
{ stdenvNoCC, lib, fetchFromGitHub, makeWrapper, wget }:
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
2022-03-05 16:20:37 +00:00
|
|
|
|
pname = "distrobox";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
version = "1.5.0.2";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "89luca89";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
repo = finalAttrs.pname;
|
|
|
|
|
rev = finalAttrs.version;
|
|
|
|
|
hash = "sha256-ss8049D6n1V/gDzEMjywDnoke5s2we9j3mO8yta72UA=";
|
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;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
platforms = platforms.linux;
|
2022-03-05 16:20:37 +00:00
|
|
|
|
maintainers = with maintainers; [ atila ];
|
|
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
|
})
|