nur-packages

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

commit b27c38a1ce8b9ce079fd2c0a426b2e1d36a1153d
parent 07b106f18361d44d633edebd56d4eac86d1a9a7d
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Mon, 23 Dec 2019 09:58:57 +0300

Add csvquote

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

diff --git a/default.nix b/default.nix @@ -4,6 +4,9 @@ with pkgs; let sources = import ./nix/sources.nix; in { + csvquote = callPackage ./pkgs/csvquote { + inherit (sources) csvquote; + }; csvtools = callPackage ./pkgs/csvtools { inherit (sources) csvtools; }; 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" }, + "csvquote": { + "branch": "master", + "description": "Enables common unix utlities like cut, awk, wc, head to work correctly with csv data containing delimiters and newlines", + "homepage": "", + "owner": "dbro", + "repo": "csvquote", + "rev": "baf37fa4cccc656282551db4ea7ce4ec6b9c318e", + "sha256": "06kzg52mnli0mvwrhw4vifj7lfs3id2v73z63s11jj2qvlcp8biy", + "type": "tarball", + "url": "https://github.com/dbro/csvquote/archive/baf37fa4cccc656282551db4ea7ce4ec6b9c318e.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.", diff --git a/pkgs/csvquote/default.nix b/pkgs/csvquote/default.nix @@ -0,0 +1,21 @@ +{ stdenv, csvquote }: + +stdenv.mkDerivation rec { + pname = "csvquote"; + version = stdenv.lib.substring 0 7 src.rev; + src = csvquote; + + makeFlags = [ "BINDIR=$(out)/bin" ]; + + preInstall = '' + mkdir -p "$out/bin" + ''; + + meta = with stdenv.lib; { + description = csvquote.description; + homepage = "https://github.com/dbro/csvquote"; + license = licenses.mit; + maintainers = with maintainers; [ sikmir ]; + platforms = platforms.linux ++ platforms.darwin; + }; +}