1{ stdenv, fetchurl, cmake, gengetopt, libX11, libXext, cppcheck}:
2
3stdenv.mkDerivation rec {
4 name = "slop-${version}";
5 version = "4.1.16";
6
7 src = fetchurl {
8 url = "https://github.com/naelstrof/slop/archive/v${version}.tar.gz";
9 sha256 = "0679ax0jr97x91hmp9qrspdka8cvl3xa77z92k4qgicbnb6hr7y2";
10 };
11
12 buildInputs = [ cmake gengetopt libX11 libXext ]
13 ++ stdenv.lib.optional doCheck cppcheck;
14
15 doCheck = false;
16
17 meta = with stdenv.lib; {
18 homepage = https://github.com/naelstrof/slop;
19 description = "Queries a selection from the user and prints to stdout";
20 platforms = stdenv.lib.platforms.all;
21 license = stdenv.lib.licenses.gpl3Plus;
22 maintainers = with maintainers; [ mbakke ];
23 };
24}