2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, autoreconfHook, linuxHeaders
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "librseq";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "0.1.0pre71_${builtins.substring 0 7 src.rev}";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "compudj";
|
|
|
|
repo = "librseq";
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "170f840b498e1aff068b90188727a656111bfc2f";
|
|
|
|
sha256 = "0rdx59y8y9x8cfmmx5gl66gibkzpk3kw5lrrqhrxan8zr37a055y";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
outputs = [ "out" "dev" "man" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ linuxHeaders ];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
installTargets = [ "install" "install-man" ];
|
|
|
|
|
|
|
|
doCheck = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
separateDebugInfo = true;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
patchPhase = ''
|
|
|
|
patchShebangs tests
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +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-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Userspace library for the Linux Restartable Sequence API";
|
|
|
|
homepage = "https://github.com/compudj/librseq";
|
2021-02-19 19:06:45 +00:00
|
|
|
license = licenses.lgpl21Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|