2022-07-23 23:19:34 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2023-02-14 20:16:37 +00:00
|
|
|
, fetchpatch
|
2022-07-23 23:19:34 +00:00
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, glew
|
|
|
|
, glm
|
|
|
|
, libGLU
|
|
|
|
, libGL
|
|
|
|
, libX11
|
|
|
|
, libXext
|
|
|
|
, libXrender
|
|
|
|
, icu
|
|
|
|
, libSM
|
2018-04-23 08:30:57 +00:00
|
|
|
}:
|
2015-03-04 17:41:01 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "slop";
|
2021-09-14 23:23:39 +00:00
|
|
|
version = "7.6";
|
2015-03-04 17:41:01 +00:00
|
|
|
|
2017-06-07 23:44:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "naelstrof";
|
|
|
|
repo = "slop";
|
|
|
|
rev = "v${version}";
|
2021-09-14 23:23:39 +00:00
|
|
|
sha256 = "sha256-LdBQxw8K8WWSfm4E2QpK4GYTuYvI+FX5gLOouVFSU/U=";
|
2015-03-04 17:41:01 +00:00
|
|
|
};
|
|
|
|
|
2023-02-14 20:16:37 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
# From Upstream PR#135: https://github.com/naelstrof/slop/pull/135
|
|
|
|
name = "Fix-linking-of-GLEW-library.patch";
|
|
|
|
url = "https://github.com/naelstrof/slop/commit/811b7e44648b9dd6c1da1554e70298cf4157e5fe.patch";
|
|
|
|
sha256 = "sha256-LNUrAeVZUJFNOt1csOaIid7gLBdtqRxp8AcC7f3cnIQ=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-07-23 23:19:34 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
2015-03-04 17:41:01 +00:00
|
|
|
|
2022-07-23 23:19:34 +00:00
|
|
|
buildInputs = [
|
|
|
|
glew
|
|
|
|
glm
|
|
|
|
libGLU
|
|
|
|
libGL
|
|
|
|
libX11
|
|
|
|
libXext
|
|
|
|
libXrender
|
|
|
|
icu
|
|
|
|
libSM
|
|
|
|
];
|
2015-03-04 17:41:01 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-06-07 23:44:31 +00:00
|
|
|
inherit (src.meta) homepage;
|
2015-03-04 17:41:01 +00:00
|
|
|
description = "Queries a selection from the user and prints to stdout";
|
2021-01-15 09:19:50 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2022-07-23 23:19:34 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2021-06-15 11:46:24 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2015-03-04 17:41:01 +00:00
|
|
|
};
|
|
|
|
}
|