nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit ad07f661bb18b014f94eaa8b69bfd420ced4faf7
parent d9590e392d9ce3a7a023c0de94f736645a32411f
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Thu, 28 Sep 2023 23:56:56 +0400

Add poe

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/suckless/poe/default.nix | 38++++++++++++++++++++++++++++++++++++++
2 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -513,6 +513,7 @@ lib.makeScope newScope ( makel = callPackage ./suckless/makel { }; nextvi = callPackage ./suckless/nextvi { }; pista = callPackage ./suckless/pista { }; + poe = callPackage ./suckless/poe { }; saait = callPackage ./suckless/saait { }; sbase = callPackage ./suckless/sbase { }; scc = callPackage ./suckless/scc { }; diff --git a/pkgs/suckless/poe/default.nix b/pkgs/suckless/poe/default.nix @@ -0,0 +1,38 @@ +{ lib, stdenv, fetchFromSourcehut, redo-apenwarr }: + +stdenv.mkDerivation (finalAttrs: { + pname = "poe"; + version = "1.5.8"; + + src = fetchFromSourcehut { + owner = "~strahinja"; + repo = "poe"; + rev = finalAttrs.version; + hash = "sha256-He1HWRyEhvgknHxyxnB8vUZgJENjxSgNPlFnZI+/RQg="; + }; + + nativeBuildInputs = [ redo-apenwarr ]; + + buildPhase = '' + runHook preBuild + export FALLBACKVER=${finalAttrs.version} + export FALLBACKDATE=1970-01-01 + POE_CC=$CC redo all + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + PREFIX=$out redo install + runHook postInstall + ''; + + meta = with lib; { + description = ".po file editor"; + homepage = "https://strahinja.srht.site/poe"; + license = licenses.gpl3Plus; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.linux; + skip.ci = stdenv.isDarwin; + }; +})