mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 10:10:45 -06:00
add distrobox package with shell completions
This commit is contained in:
parent
cbfbdd3bcf
commit
c3031d3cd7
2 changed files with 65 additions and 0 deletions
|
@ -3,4 +3,5 @@
|
||||||
nph = pkgs.callPackage ./nim/nph { }; # doesn't compile with 2.2.0 :/
|
nph = pkgs.callPackage ./nim/nph { }; # doesn't compile with 2.2.0 :/
|
||||||
nimlangserver = pkgs.callPackage ./nim/nimlangserver { };
|
nimlangserver = pkgs.callPackage ./nim/nimlangserver { };
|
||||||
nimble = pkgs.callPackage ./nim/nimble { };
|
nimble = pkgs.callPackage ./nim/nimble { };
|
||||||
|
distrobox = pkgs.callPackage ./distrobox {};
|
||||||
}
|
}
|
||||||
|
|
64
pkgs/distrobox/default.nix
Normal file
64
pkgs/distrobox/default.nix
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
{
|
||||||
|
stdenvNoCC,
|
||||||
|
lib,
|
||||||
|
fetchFromGitHub,
|
||||||
|
makeWrapper,
|
||||||
|
wget,
|
||||||
|
installShellFiles,
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||||
|
pname = "distrobox";
|
||||||
|
version = "1.7.2.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "89luca89";
|
||||||
|
repo = "distrobox";
|
||||||
|
rev = finalAttrs.version;
|
||||||
|
hash = "sha256-H2jeKs0h4ZAcP33HB5jptlubq62cwnjPK2wSlEIfFWA=";
|
||||||
|
};
|
||||||
|
|
||||||
|
dontConfigure = true;
|
||||||
|
dontBuild = true;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper installShellFiles];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
# https://github.com/89luca89/distrobox/issues/408
|
||||||
|
substituteInPlace ./distrobox-generate-entry \
|
||||||
|
--replace-fail 'icon_default="''${HOME}/.local' "icon_default=\"$out"
|
||||||
|
./install -P $out
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
# https://github.com/89luca89/distrobox/issues/407
|
||||||
|
postFixup = ''
|
||||||
|
wrapProgram "$out/bin/distrobox-generate-entry" \
|
||||||
|
--prefix PATH ":" ${lib.makeBinPath [ wget ]}
|
||||||
|
|
||||||
|
mkdir -p $out/share/distrobox
|
||||||
|
echo 'container_additional_volumes="/nix:/nix"' > $out/share/distrobox/distrobox.conf
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
ls completions/zsh
|
||||||
|
installShellCompletion --cmd distrbox --zsh completions/zsh/_distrobox
|
||||||
|
'';
|
||||||
|
|
||||||
|
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.it/";
|
||||||
|
license = licenses.gpl3Only;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ atila ];
|
||||||
|
};
|
||||||
|
})
|
Loading…
Reference in a new issue