2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2019-09-24 19:54:51 +00:00
|
|
|
, autoreconfHook, linuxHeaders
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "librseq";
|
2022-05-23 21:39:48 +00:00
|
|
|
version = "0.1.0pre71_${builtins.substring 0 7 src.rev}";
|
2019-09-24 19:54:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "compudj";
|
|
|
|
repo = "librseq";
|
2022-05-23 21:39:48 +00:00
|
|
|
rev = "170f840b498e1aff068b90188727a656111bfc2f";
|
|
|
|
sha256 = "0rdx59y8y9x8cfmmx5gl66gibkzpk3kw5lrrqhrxan8zr37a055y";
|
2019-09-24 19:54:51 +00:00
|
|
|
};
|
|
|
|
|
2020-08-24 15:15:29 +00:00
|
|
|
outputs = [ "out" "dev" "man" ];
|
2019-09-24 19:54:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ linuxHeaders ];
|
|
|
|
|
2020-08-24 15:15:29 +00:00
|
|
|
installTargets = [ "install" "install-man" ];
|
|
|
|
|
2020-08-24 14:07:17 +00:00
|
|
|
doCheck = true;
|
2019-09-24 19:54:51 +00:00
|
|
|
separateDebugInfo = true;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-08-24 14:07:17 +00:00
|
|
|
patchPhase = ''
|
|
|
|
patchShebangs tests
|
|
|
|
'';
|
|
|
|
|
2019-09-24 19:54:51 +00:00
|
|
|
# The share/ subdir only contains a doc/ with a README.md that just describes
|
|
|
|
# how to compile the library, which clearly isn't very useful! So just get
|
|
|
|
# rid of it anyway.
|
|
|
|
postInstall = ''
|
|
|
|
rm -rf $out/share
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-09-24 19:54:51 +00:00
|
|
|
description = "Userspace library for the Linux Restartable Sequence API";
|
|
|
|
homepage = "https://github.com/compudj/librseq";
|
2021-02-18 00:54:30 +00:00
|
|
|
license = licenses.lgpl21Only;
|
2019-09-24 19:54:51 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|