summary refs log tree commit diff
path: root/pkgs/tools/misc/slop/default.nix
blob: 800fad3b564efb39152d4923b96d7e4d20b6d665 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, fetchurl, cmake, gengetopt, libX11, libXext, cppcheck}:

stdenv.mkDerivation rec {
  name = "slop-${version}";
  version = "4.1.16";

  src = fetchurl {
    url = "https://github.com/naelstrof/slop/archive/v${version}.tar.gz";
    sha256 = "0679ax0jr97x91hmp9qrspdka8cvl3xa77z92k4qgicbnb6hr7y2";
  };

  buildInputs = [ cmake gengetopt libX11 libXext ]
                ++ stdenv.lib.optional doCheck cppcheck;

  doCheck = false;

  meta = with stdenv.lib; {
    homepage = https://github.com/naelstrof/slop;
    description = "Queries a selection from the user and prints to stdout";
    platforms = stdenv.lib.platforms.all;
    license = stdenv.lib.licenses.gpl3Plus;
    maintainers = with maintainers; [ mbakke ];
  };
}