Files
nixpkgs/pkgs/by-name/fo/fopnu/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

55 lines
1.0 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 = [ ];
platforms = [ "x86_64-linux" ];
};
}