nixpkgs/pkgs/tools/misc/slop/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

63 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, 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 {
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
};
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=";
})
];
nativeBuildInputs = [
cmake
pkg-config
];
2015-03-04 17:41:01 +00:00
buildInputs = [
glew
glm
libGLU
libGL
libX11
libXext
libXrender
icu
libSM
];
2015-03-04 17:41:01 +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;
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ];
2015-03-04 17:41:01 +00:00
};
}