nur-packages

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

commit 07b106f18361d44d633edebd56d4eac86d1a9a7d
parent 4c224676cb4f712dabaf697553daff8663eb2b67
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Mon, 23 Dec 2019 09:51:56 +0300

Add csvtools

Diffstat:
Mdefault.nix | 3+++
Mnix/sources.json | 12++++++++++++
Apkgs/csvtools/default.nix | 31+++++++++++++++++++++++++++++++
3 files changed, 46 insertions(+), 0 deletions(-)

diff --git a/default.nix b/default.nix @@ -4,6 +4,9 @@ with pkgs; let sources = import ./nix/sources.nix; in { + csvtools = callPackage ./pkgs/csvtools { + inherit (sources) csvtools; + }; datamaps = callPackage ./pkgs/datamaps { inherit (sources) datamaps; }; diff --git a/nix/sources.json b/nix/sources.json @@ -35,6 +35,18 @@ "url": "https://github.com/tumic0/GPXSee-maps/archive/8d53800eb0ce4d9240a145959bccb94513128a17.tar.gz", "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" }, + "csvtools": { + "branch": "master", + "description": "GNU-alike tools for parsing RFC 4180 CSVs at high speed.", + "homepage": "", + "owner": "DavyLandman", + "repo": "csvtools", + "rev": "efd3ef1c94c26c673e958ecb045056bfc2c7b4f3", + "sha256": "0s4aw9wf1apxjas7hsgfzryisb67nipxhivxkzrar3rpykk0ilc4", + "type": "tarball", + "url": "https://github.com/DavyLandman/csvtools/archive/efd3ef1c94c26c673e958ecb045056bfc2c7b4f3.tar.gz", + "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" + }, "datamaps": { "branch": "master", "description": "Indexes points and lines and generates map tiles to display them", diff --git a/pkgs/csvtools/default.nix b/pkgs/csvtools/default.nix @@ -0,0 +1,31 @@ +{ stdenv, pcre, openssl, csvtools }: + +stdenv.mkDerivation rec { + pname = "csvtools"; + version = stdenv.lib.substring 0 7 src.rev; + src = csvtools; + + buildInputs = [ pcre ]; + + makeFlags = [ "prefix=$(out)" ]; + enableParallelBuilding = true; + + doCheck = true; + checkInputs = [ openssl ]; + + preCheck = '' + patchShebangs . + ''; + + preInstall = '' + mkdir -p "$out/bin" + ''; + + meta = with stdenv.lib; { + description = csvtools.description; + homepage = "https://github.com/DavyLandman/csvtools"; + license = licenses.mit; + maintainers = with maintainers; [ sikmir ]; + platforms = platforms.linux ++ platforms.darwin; + }; +}