nur-packages

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

commit 78a0fd0113fc415d415fa6db86c0ce3ff37beaee
parent c0ce5cd52f44d31a5e02900790f88862a5edb668
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sun,  7 Aug 2022 08:50:56 +0300

Move nsxiv to nixpkgs

Diffstat:
Mpkgs/default.nix | 1-
Dpkgs/suckless/nsxiv/default.nix | 35-----------------------------------
2 files changed, 0 insertions(+), 36 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -422,7 +422,6 @@ lib.makeScope newScope ( mage = callPackage ./suckless/mage { }; makel = callPackage ./suckless/makel { }; nextvi = callPackage ./suckless/nextvi { }; - nsxiv = callPackage ./suckless/nsxiv { }; pista = callPackage ./suckless/pista { }; saait = callPackage ./suckless/saait { }; sbase = callPackage ./suckless/sbase { }; diff --git a/pkgs/suckless/nsxiv/default.nix b/pkgs/suckless/nsxiv/default.nix @@ -1,35 +0,0 @@ -{ lib, stdenv, fetchFromGitHub, libXft, imlib2, giflib, libexif, libwebp, conf ? null }: - -stdenv.mkDerivation rec { - pname = "nsxiv"; - version = "30"; - - src = fetchFromGitHub { - owner = "nsxiv"; - repo = "nsxiv"; - rev = "v${version}"; - hash = "sha256-swzTdQ6ow1At4bKRORqz6fb0Ej92yU9rlI/OgcinPu4="; - }; - - configFile = lib.optionalString (conf!=null) (builtins.toFile "config.def.h" conf); - preBuild = lib.optionalString (conf!=null) "cp ${configFile} config.def.h"; - - buildInputs = [ libXft imlib2 giflib libexif libwebp ]; - - makeFlags = [ "CC:=$(CC)" ]; - - installFlags = [ "PREFIX=$(out)" ]; - - postInstall = '' - install -Dm644 nsxiv.desktop -t $out/share/applications - ''; - - meta = with lib; { - description = "Neo Simple X Image Viewer"; - inherit (src.meta) homepage; - license = licenses.gpl2Plus; - maintainers = [ maintainers.sikmir ]; - platforms = platforms.linux; - skip.ci = stdenv.isDarwin; - }; -}