2022-01-19 23:45:15 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nsync";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.27.0";
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-5pd2IpnPB7lEmy44OJjcwfE+yUQBS0fZVG18VUe/3C8=";
|
2022-01-19 23:45:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
# Needed for case-insensitive filesystems like on macOS
|
|
|
|
# because a file named BUILD exists already.
|
|
|
|
cmakeBuildDir = "build_dir";
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/google/nsync";
|
|
|
|
description = "C library that exports various synchronization primitives";
|
|
|
|
license = lib.licenses.asl20;
|
2022-10-06 18:32:54 +00:00
|
|
|
maintainers = with lib.maintainers; [ puffnfresh Luflosi ];
|
|
|
|
platforms = lib.platforms.unix;
|
2022-01-19 23:45:15 +00:00
|
|
|
};
|
|
|
|
}
|