2022-01-19 23:45:15 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nsync";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.26.0";
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-pE9waDI+6LQwbyPJ4zROoF93Vt6+SETxxJ/UxeZE5WE=";
|
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
|
|
|
};
|
|
|
|
}
|