Merge pull request #179888 from DamienCassou/offpunk

offpunk: init at 1.4
This commit is contained in:
Anderson Torres 2022-07-04 22:17:56 -03:00 committed by GitHub
commit 0c873dc3a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,67 @@
{
fetchFromGitea,
less,
lib,
makeWrapper,
offpunk,
python3,
ripgrep,
stdenv,
testVersion,
timg,
xdg-utils,
xsel,
}:
let
pythonDependencies = with python3.pkgs; [
beautifulsoup4
cryptography
feedparser
pillow
readability-lxml
requests
setproctitle
];
otherDependencies = [
less
ripgrep
timg
xdg-utils
xsel
];
in
stdenv.mkDerivation (finalAttrs: {
pname = "offpunk";
version = "1.4";
src = fetchFromGitea {
domain = "notabug.org";
owner = "ploum";
repo = "offpunk";
rev = "v${finalAttrs.version}";
sha256 = "04dzkzsan1cnrslsvfgn1whpwald8xy34wqzvq81hd2mvw9a2n69";
};
buildInputs = [ makeWrapper ] ++ otherDependencies ++ pythonDependencies;
installPhase = ''
runHook preInstall
install -D ./offpunk.py $out/bin/offpunk
wrapProgram $out/bin/offpunk \
--set PYTHONPATH "$PYTHONPATH" \
--set PATH ${lib.makeBinPath otherDependencies}
runHook postInstall
'';
meta = with lib; {
description = "An Offline-First browser for the smolnet ";
homepage = "https://notabug.org/ploum/offpunk";
maintainers = with maintainers; [ DamienCassou ];
platforms = platforms.linux;
license = licenses.bsd2;
};
})

View File

@ -27516,6 +27516,8 @@ with pkgs;
mt32emu-smf2wav = callPackage ../applications/audio/munt/mt32emu-smf2wav.nix { };
offpunk = callPackage ../applications/networking/browsers/offpunk { };
p2pool = callPackage ../applications/misc/p2pool { };
pass2csv = python3Packages.callPackage ../tools/security/pass2csv {};