Merge pull request #117511 from karthikiyengar/submit/unipicker

This commit is contained in:
Sandro 2021-04-01 13:42:41 +02:00 committed by GitHub
commit 607ac87945
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 44 additions and 0 deletions

View File

@ -5054,6 +5054,12 @@
fingerprint = "8992 44FC D291 5CA2 0A97 802C 156C 88A5 B0A0 4B2A";
}];
};
kiyengar = {
email = "hello@kiyengar.net";
github = "karthikiyengar";
githubId = 8260207;
name = "Karthik Iyengar";
};
kkallio = {
email = "tierpluspluslists@gmail.com";
name = "Karn Kallio";

View File

@ -0,0 +1,36 @@
{ stdenv, fetchFromGitHub, lib, fzf, xclip }:
stdenv.mkDerivation rec {
pname = "unipicker";
version = "unstable-2018-07-10";
src = fetchFromGitHub {
owner = "jeremija";
repo = pname;
rev = "767571c87cdb1e654408d19fc4db98e5e6725c04";
sha256 = "1k4v53pm3xivwg9vq2kndpcmah0yn4679r5jzxvg38bbkfdk86c1";
};
buildInputs = [
fzf
xclip
];
preInstall = ''
substituteInPlace unipicker --replace "/etc/unipickerrc" "$out/etc/unipickerrc"
substituteInPlace unipickerrc --replace "/usr/local" "$out"
'';
makeFlags = [
"PREFIX=$(out)"
"DESTDIR=$(out)"
];
meta = with lib; {
description = "A CLI utility for searching unicode characters by description and optionally copying them to clipboard";
homepage = "https://github.com/jeremija/unipicker";
license = licenses.mit;
maintainers = with maintainers; [ kiyengar ];
platforms = with platforms; unix;
};
}

View File

@ -26024,6 +26024,8 @@ in
unigine-valley = callPackage ../applications/graphics/unigine-valley { };
unipicker = callPackage ../applications/misc/unipicker { };
unison = callPackage ../applications/networking/sync/unison {
ocamlPackages = ocaml-ng.ocamlPackages_4_09;
enableX11 = config.unison.enableX11 or true;