nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 ncurses,
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 version = "1.5.0";
10 pname = "smenu";
11
12 src = fetchFromGitHub {
13 owner = "p-gen";
14 repo = "smenu";
15 rev = "v${finalAttrs.version}";
16 sha256 = "sha256-nTQe6sCMHGRW7Djpv33xY8nL4a7ZyC9YM7PGOvmpuSM=";
17 };
18
19 buildInputs = [ ncurses ];
20
21 meta = {
22 homepage = "https://github.com/p-gen/smenu";
23 description = "Terminal selection utility";
24 longDescription = ''
25 Terminal utility that allows you to use words coming from the standard
26 input to create a nice selection window just below the cursor. Once done,
27 your selection will be sent to standard output.
28 '';
29 license = lib.licenses.gpl2Only;
30 maintainers = with lib.maintainers; [ matthiasbeyer ];
31 platforms = lib.platforms.unix;
32 mainProgram = "smenu";
33 };
34})