Merge pull request #143416 from WolfangAukang/indigenous

This commit is contained in:
Sandro 2021-11-22 16:07:45 +01:00 committed by GitHub
commit 98747f27ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,54 @@
{ stdenv, lib, fetchurl, unzip, makeDesktopItem, copyDesktopItems
, makeWrapper, electron }:
stdenv.mkDerivation rec {
pname = "indigenous-desktop";
version = "1.3.0";
src = fetchurl {
url = "https://github.com/marksuth/indigenous-desktop/releases/download/v${version}/indigenous-linux-x64-${version}.zip";
sha256 = "sha256-1nqj9N5RQE0PogJSULu75CTVLHeQsHIimtFXSCP6SPA=";
};
nativeBuildInputs = [
copyDesktopItems
makeWrapper
unzip
];
desktopItems = [
(makeDesktopItem {
name = pname;
exec = "indigenous-desktop";
icon = "indigenous-desktop";
comment = meta.description;
desktopName = "Indigenous";
genericName = "Feed Reader";
})
];
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/opt/indigenous $out/share/indigenous $out/share/pixmaps
cp -r ./ $out/opt/indigenous
mv $out/opt/indigenous/{locales,resources} $out/share/indigenous
mv $out/share/indigenous/resources/app/images/icon.png $out/share/pixmaps/indigenous-desktop.png
makeWrapper ${electron}/bin/electron $out/bin/indigenous-desktop \
--add-flags $out/share/indigenous/resources/app
runHook postInstall
'';
meta = with lib; {
description = "IndieWeb app with extensions for sharing to/reading from micropub endpoints";
homepage = "https://indigenous.realize.be/indigenous-desktop";
license = licenses.gpl3Only;
maintainers = with maintainers; [ wolfangaukang ];
platforms = [ "x86_64-linux" ];
};
}

View File

@ -25777,6 +25777,8 @@ with pkgs;
hyperledger-fabric = callPackage ../tools/misc/hyperledger-fabric { };
indigenous-desktop = callPackage ../applications/networking/feedreaders/indigenous-desktop { };
jackline = callPackage ../applications/networking/instant-messengers/jackline {
ocamlPackages = ocaml-ng.ocamlPackages_4_08;
};