iLoader instead of Althea
This commit is contained in:
parent
1e31cbac77
commit
393ccdb4dd
3 changed files with 59 additions and 116 deletions
57
packages/iloader/default.nix
Normal file
57
packages/iloader/default.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
# adapted from an old version of someone elses package
|
||||
# https://github.com/ern775/custom-nixpkgs/blob/master/pkgs/iloader/package.nix
|
||||
# ty
|
||||
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
dpkg,
|
||||
autoPatchelfHook,
|
||||
glib,
|
||||
gtk3,
|
||||
wrapGAppsHook3,
|
||||
webkitgtk_4_1,
|
||||
gdk-pixbuf,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "iloader";
|
||||
version = "2.2.6";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/nab138/iloader/releases/download/v${finalAttrs.version}/iloader-linux-amd64.deb";
|
||||
hash = "sha256-YWoeQjjoqLkaA1oNx2Eg7PwXaenWYKk73CdAKHISlWI=";
|
||||
};
|
||||
|
||||
unpackCmd = "dpkg -x $curSrc source";
|
||||
|
||||
nativeBuildInputs = [
|
||||
dpkg
|
||||
autoPatchelfHook
|
||||
wrapGAppsHook3
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
gtk3
|
||||
webkitgtk_4_1
|
||||
gdk-pixbuf
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin
|
||||
mv usr/share usr/bin $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "User friendly sideloader";
|
||||
homepage = "https://github.com/nab138/iloader";
|
||||
license = lib.licenses.mit;
|
||||
platforms = [ "x86_64-linux" ];
|
||||
mainProgram = "iloader";
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue