2021-01-17 04:51:22 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
|
2019-11-10 17:44:34 +01:00
|
|
|
, glew, glm, libGLU, libGL, libX11, libXext, libXrender, icu
|
2018-04-23 10:30:57 +02:00
|
|
|
, cppcheck
|
|
|
|
}:
|
2015-03-04 18:41:01 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "slop";
|
2020-04-12 17:04:01 +02:00
|
|
|
version = "7.5";
|
2015-03-04 18:41:01 +01:00
|
|
|
|
2017-06-08 01:44:31 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "naelstrof";
|
|
|
|
repo = "slop";
|
|
|
|
rev = "v${version}";
|
2020-04-12 17:04:01 +02:00
|
|
|
sha256 = "1k8xxb4rj2fylr4vj16yvsf73cyywliz9cy78pl4ibmi03jhg837";
|
2015-03-04 18:41:01 +01:00
|
|
|
};
|
|
|
|
|
2021-01-17 04:51:22 +01:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2019-11-10 17:44:34 +01:00
|
|
|
buildInputs = [ glew glm libGLU libGL libX11 libXext libXrender icu ]
|
2021-01-15 10:19:50 +01:00
|
|
|
++ lib.optional doCheck cppcheck;
|
2015-03-04 18:41:01 +01:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-06-08 01:44:31 +02:00
|
|
|
inherit (src.meta) homepage;
|
2015-03-04 18:41:01 +01:00
|
|
|
description = "Queries a selection from the user and prints to stdout";
|
2021-01-15 10:19:50 +01:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
license = lib.licenses.gpl3Plus;
|
2017-06-08 01:44:31 +02:00
|
|
|
maintainers = with maintainers; [ primeos mbakke ];
|
2015-03-04 18:41:01 +01:00
|
|
|
};
|
|
|
|
}
|