unipicker: modernize, migrate to by-name

unipicker: remove from top-level

+47 -43
-41
pkgs/applications/misc/unipicker/default.nix
··· 1 - { stdenv, fetchFromGitHub, lib, fzf, xclip }: 2 - 3 - stdenv.mkDerivation rec { 4 - pname = "unipicker"; 5 - version = "2.0.1"; 6 - 7 - src = fetchFromGitHub { 8 - owner = "jeremija"; 9 - repo = pname; 10 - rev = "v${version}"; 11 - sha256 = "1k4v53pm3xivwg9vq2kndpcmah0yn4679r5jzxvg38bbkfdk86c1"; 12 - }; 13 - 14 - buildInputs = [ 15 - fzf 16 - xclip 17 - ]; 18 - 19 - preInstall = '' 20 - substituteInPlace unipicker \ 21 - --replace "/etc/unipickerrc" "$out/etc/unipickerrc" \ 22 - --replace "fzf" "${fzf}/bin/fzf" 23 - substituteInPlace unipickerrc \ 24 - --replace "/usr/local" "$out" \ 25 - --replace "fzf" "${fzf}/bin/fzf" 26 - ''; 27 - 28 - makeFlags = [ 29 - "PREFIX=$(out)" 30 - "DESTDIR=$(out)" 31 - ]; 32 - 33 - meta = with lib; { 34 - description = "A CLI utility for searching unicode characters by description and optionally copying them to clipboard"; 35 - homepage = "https://github.com/jeremija/unipicker"; 36 - license = licenses.mit; 37 - maintainers = with maintainers; [ sigmanificient ]; 38 - platforms = platforms.unix; 39 - mainProgram = "unipicker"; 40 - }; 41 - }
+47
pkgs/by-name/un/unipicker/package.nix
··· 1 + { 2 + stdenv, 3 + fetchFromGitHub, 4 + lib, 5 + fzf, 6 + xclip, 7 + }: 8 + 9 + stdenv.mkDerivation (finalAttrs: { 10 + pname = "unipicker"; 11 + version = "2.0.1"; 12 + 13 + src = fetchFromGitHub { 14 + owner = "jeremija"; 15 + repo = "unipicker"; 16 + rev = "v${finalAttrs.version}"; 17 + hash = "sha256-Br9nCK5eWoSN1i4LM2F31B62L9vuN5KzjS9pC9lq9oM="; 18 + }; 19 + 20 + buildInputs = [ 21 + fzf 22 + xclip 23 + ]; 24 + 25 + preInstall = '' 26 + substituteInPlace unipicker \ 27 + --replace-fail "/etc/unipickerrc" "$out/etc/unipickerrc" \ 28 + --replace-fail "fzf" "${fzf}/bin/fzf" 29 + substituteInPlace unipickerrc \ 30 + --replace-fail "/usr/local" "$out" \ 31 + --replace-fail "fzf" "${fzf}/bin/fzf" 32 + ''; 33 + 34 + makeFlags = [ 35 + "PREFIX=${placeholder "out"}" 36 + "DESTDIR=${placeholder "out"}" 37 + ]; 38 + 39 + meta = { 40 + description = "A CLI utility for searching unicode characters by description and optionally copying them to clipboard"; 41 + homepage = "https://github.com/jeremija/unipicker"; 42 + license = lib.licenses.mit; 43 + maintainers = with lib.maintainers; [ sigmanificient ]; 44 + platforms = lib.platforms.unix; 45 + mainProgram = "unipicker"; 46 + }; 47 + })
-2
pkgs/top-level/all-packages.nix
··· 35067 35067 35068 35068 unigine-superposition = libsForQt5.callPackage ../applications/graphics/unigine-superposition { }; 35069 35069 35070 - unipicker = callPackage ../applications/misc/unipicker { }; 35071 - 35072 35070 unpaper = callPackage ../tools/graphics/unpaper { }; 35073 35071 35074 35072 unison-ucm = callPackage ../development/compilers/unison { };