2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2023-02-16 17:41:37 +00:00
|
|
|
, fetchpatch
|
2022-08-12 12:06:08 +00:00
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, glew
|
|
|
|
, glm
|
|
|
|
, libGLU
|
|
|
|
, libGL
|
|
|
|
, libX11
|
|
|
|
, libXext
|
|
|
|
, libXrender
|
|
|
|
, icu
|
|
|
|
, libSM
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "slop";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "7.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "naelstrof";
|
|
|
|
repo = "slop";
|
|
|
|
rev = "v${version}";
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "sha256-LdBQxw8K8WWSfm4E2QpK4GYTuYvI+FX5gLOouVFSU/U=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-16 17:41: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-08-12 12:06:08 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
buildInputs = [
|
|
|
|
glew
|
|
|
|
glm
|
|
|
|
libGLU
|
|
|
|
libGL
|
|
|
|
libX11
|
|
|
|
libXext
|
|
|
|
libXrender
|
|
|
|
icu
|
|
|
|
libSM
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Queries a selection from the user and prints to stdout";
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2022-08-12 12:06:08 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2021-06-28 23:13:55 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "slop";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|