nur-packages

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

commit fd6811e8c24affe28cc7e35aa439ea67e88e192f
parent 5c64f10af1d0a4a9238dec21765bbf016a35b400
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Mon,  6 Jan 2020 23:47:58 +0300

Add gt-bash-client

Diffstat:
Mdefault.nix | 3+++
Mnix/sources.json | 12++++++++++++
Apkgs/gt-bash-client/default.nix | 19+++++++++++++++++++
3 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/default.nix b/default.nix @@ -54,6 +54,9 @@ in rec { gpxtools = callPackage ./pkgs/gpxtools { inherit (sources) gpxtools; }; + gt-bash-client = callPackage ./pkgs/gt-bash-client { + inherit (sources) gt-bash-client; + }; lsd2dsl = libsForQt5.callPackage ./pkgs/lsd2dsl { inherit (sources) lsd2dsl; }; diff --git a/nix/sources.json b/nix/sources.json @@ -143,6 +143,18 @@ "url": "https://notabug.org/irdvo/gpxtools/archive/b989f357abb9f9b694cbe95081dd8d1094019233.tar.gz", "url_template": "https://notabug.org/<owner>/<repo>/archive/<rev>.tar.gz" }, + "gt-bash-client": { + "branch": "master", + "description": "Get translated text from your terminal! Console Google Translate Script (bash+curl+sed)", + "homepage": "https://ophoperhpo.github.io/GT-bash-client/", + "owner": "OPHoperHPO", + "repo": "GT-bash-client", + "rev": "f8959489d93de963721985b2b9501ed0bc8ce3e8", + "sha256": "10877mq9w5fc9krhr7fw8a0l2v27a1iy61zri3whbk2r604s0s6q", + "type": "tarball", + "url": "https://github.com/OPHoperHPO/GT-bash-client/archive/f8959489d93de963721985b2b9501ed0bc8ce3e8.tar.gz", + "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" + }, "imgp": { "branch": "master", "description": ":camera_flash: High-performance CLI batch image resizer & rotator", diff --git a/pkgs/gt-bash-client/default.nix b/pkgs/gt-bash-client/default.nix @@ -0,0 +1,19 @@ +{ stdenv, gt-bash-client }: + +stdenv.mkDerivation rec { + pname = "gt-bash-client"; + version = stdenv.lib.substring 0 7 src.rev; + src = gt-bash-client; + + installPhase = '' + install -Dm755 translate.sh "$out/bin/gt-bash-client" + ''; + + meta = with stdenv.lib; { + description = gt-bash-client.description; + homepage = gt-bash-client.homepage; + license = licenses.mit; + maintainers = with maintainers; [ sikmir ]; + platforms = platforms.all; + }; +}