nur-packages

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

commit 46d4ac88993e6c4c875097e1771faaca370f1174
parent 2b9486db2f30780fedbf0e7f5973d1fcbbaf57fa
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Mon, 29 Aug 2022 16:55:18 +0300

Add worm

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/misc/worm/default.nix | 40++++++++++++++++++++++++++++++++++++++++
2 files changed, 41 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -340,6 +340,7 @@ lib.makeScope newScope ( buildGoModule = pkgs.buildGo117Module; }; tlstunnel = callPackage ./misc/tlstunnel { }; + worm = callPackage ./misc/worm { }; wptools = callPackage ./misc/wptools { }; xfractint = callPackage ./misc/xfractint { }; xtr = callPackage ./misc/xtr { diff --git a/pkgs/misc/worm/default.nix b/pkgs/misc/worm/default.nix @@ -0,0 +1,40 @@ +{ lib, stdenv, nimPackages, fetchFromGitHub, pkg-config, xorg }: + +nimPackages.buildNimPackage rec { + pname = "worm"; + version = "0.3.1"; + nimBinOnly = true; + + src = fetchFromGitHub { + owner = "codic12"; + repo = "worm"; + rev = "v${version}"; + hash = "sha256-I+dRcsVaZWsZZch+17Y5Ypl8j7qGNHPFijPXV5NbqKA="; + }; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = with nimPackages; [ + pixie + regex + unicodedb + (fetchNimble { + pname = "x11"; + version = "1.1"; + hash = "sha256-2XRyXiBxAc9Zx/w0zRBHRZ240qww0FJvIvOKZ8YH50A="; + }) + ] ++ (with xorg; [ libX11 libXft libXinerama ]); + + postInstall = '' + install -Dm644 assets/worm.desktop -t $out/share/applications + ''; + + meta = with lib; { + description = "A dynamic, tag-based window manager written in Nim"; + inherit (src.meta) homepage; + license = licenses.mit; + platforms = platforms.linux; + maintainers = [ maintainers.sikmir ]; + skip.ci = stdenv.isDarwin; + }; +}