2022-01-14 20:29:38 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nsync";
|
|
|
|
version = "1.24.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
2022-01-15 20:56:15 +00:00
|
|
|
repo = pname;
|
2022-01-14 20:29:38 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-jQJtlBDR6efBe1tFOUOZ6awaMTT33qM/GbvbwiWTZxw=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/google/nsync";
|
|
|
|
description = "C library that exports various synchronization primitives";
|
|
|
|
license = lib.licenses.asl20;
|
2022-01-15 20:56:15 +00:00
|
|
|
maintainers = with lib.maintainers; [ puffnfresh ];
|
2022-01-14 20:29:38 +00:00
|
|
|
# On macOS we get an error for some reason:
|
|
|
|
# > mkdir: cannot create directory 'build': File exists
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|