55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchurl,
|
|
|
|
autoPatchelfHook,
|
|
wrapGAppsHook3,
|
|
|
|
dbus-glib,
|
|
gtk3,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "fopnu";
|
|
version = "1.68";
|
|
|
|
src = fetchurl {
|
|
url = "https://download2.fopnu.com/download/fopnu-${version}-1.x86_64.manualinstall.tar.gz";
|
|
hash = "sha256-q+nI0s4zu6+Lr8pdEyR8/zOkq5ULydYt2bntvzyalZo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoPatchelfHook
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
dbus-glib
|
|
gtk3
|
|
];
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -D -m 0755 fopnu -t $out/bin
|
|
install -D -m 0444 fopnu.desktop -t $out/share/applications
|
|
install -D -m 0444 fopnu.png -t $out/share/icons/hicolor/48x48/apps
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "P2P file sharing system";
|
|
homepage = "https://fopnu.com";
|
|
license = licenses.unfree;
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
mainProgram = "fopnu";
|
|
maintainers = with maintainers; [ ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|