nur-packages

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

commit 89a262872f9116d87352dcb004f44131172c02f5
parent d270f715164efd202aa6fafcf14a4e505c8ec299
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Sun,  6 Jun 2021 00:16:53 +0300

Move sfm to nixpkgs

Diffstat:
Mpkgs/default.nix | 1-
Dpkgs/suckless/sfm/config.patch | 33---------------------------------
Dpkgs/suckless/sfm/default.nix | 29-----------------------------
3 files changed, 0 insertions(+), 63 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -278,7 +278,6 @@ lib.makeScope newScope ( sbase = callPackage ./suckless/sbase { }; scroll = callPackage ./suckless/scroll { }; sfeed = callPackage ./suckless/sfeed { }; - sfm = callPackage ./suckless/sfm { }; sthkd = callPackage ./suckless/sthkd { }; xprompt = callPackage ./suckless/xprompt { }; } diff --git a/pkgs/suckless/sfm/config.patch b/pkgs/suckless/sfm/config.patch @@ -1,33 +0,0 @@ -diff --git i/config.def.h w/config.def.h -index 01ebd48..1725f9e 100644 ---- i/config.def.h -+++ w/config.def.h -@@ -38,6 +38,8 @@ static const char *mupdf[] = { "mupdf", "-I" }; - static const char *libreoffice[] = { "libreoffice" }; - static const char *gimp[] = { "gimp" }; - static const char *r2[] = { "r2", "-c", "vv" }; -+static const char *gpxsee[] = { "gpxsee" }; -+static const char *oomapper[] = { "Mapper" }; - - /* extensions*/ - static const char *images[] = { "bmp", "jpg", "jpeg", "png", "gif", "xpm" }; -@@ -50,6 +52,9 @@ static const char *videos[] = { "avi", "flv", "wav", "webm", "wma", "wmv", - "mp4", "mpeg", "mpg" }; - static const char *documents[] = { "odt", "doc", "docx", "xls", "xlsx", "odp", - "ods", "pptx", "odg" }; -+static const char *gpsdata[] = { "gpx", "tcx", "kml", "loc", "slf", "fit", "igc", "nmea", "plt", "rte", "wpt", "geojson", "cup", "gpi", "sml", "ov2", "itn" }; -+static const char *maps[] = { "img", "jnx", "xml", "kap", "map", "mbtiles", "rmap", "rtmap", "tba", "kmz", "aqm", "sqlitedb" }; -+static const char *omaps[] = { "omap", "xmap", "ocd" }; - - static Rule rules[] = { - {videos, LEN(videos), mpv, LEN(mpv) }, -@@ -59,6 +64,9 @@ static Rule rules[] = { - {documents, LEN(documents), libreoffice, LEN(libreoffice) }, - {arts, LEN(arts), gimp, LEN(gimp) }, - {obj, LEN(obj), r2, LEN(r2) }, -+ {gpsdata, LEN(gpsdata), gpxsee, LEN(gpxsee) }, -+ {maps, LEN(maps), gpxsee, LEN(gpxsee) }, -+ {omaps, LEN(omaps), oomapper, LEN(oomapper) }, - }; - - /* normal keys */ diff --git a/pkgs/suckless/sfm/default.nix b/pkgs/suckless/sfm/default.nix @@ -1,29 +0,0 @@ -{ lib, stdenv, fetchFromGitHub, conf ? null }: - -stdenv.mkDerivation rec { - pname = "sfm"; - version = "0.1"; - - src = fetchFromGitHub { - owner = "afify"; - repo = pname; - rev = "v${version}"; - hash = "sha256-i4WzYaJKityIt+LPWCbd6UsPBaYoaS397l5BInOXQQA="; - }; - - patches = [ ./config.patch ]; - - configFile = lib.optionalString (conf!=null) (lib.writeText "config.def.h" conf); - - postPatch = lib.optionalString (conf!=null) "cp ${configFile} config.def.h"; - - installFlags = [ "PREFIX=$(out)" ]; - - meta = with lib; { - description = "Simple file manager"; - inherit (src.meta) homepage; - license = licenses.isc; - platforms = platforms.unix; - maintainers = [ maintainers.sikmir ]; - }; -}