2022-01-14 21:29:38 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nsync";
|
2023-06-21 16:43:37 +02:00
|
|
|
version = "1.26.0";
|
2022-01-14 21:29:38 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
2022-01-15 21:56:15 +01:00
|
|
|
repo = pname;
|
2022-01-14 21:29:38 +01:00
|
|
|
rev = version;
|
2023-06-21 16:43:37 +02:00
|
|
|
hash = "sha256-pE9waDI+6LQwbyPJ4zROoF93Vt6+SETxxJ/UxeZE5WE=";
|
2022-01-14 21:29:38 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2022-10-01 14:28:18 +02:00
|
|
|
# Needed for case-insensitive filesystems like on macOS
|
|
|
|
# because a file named BUILD exists already.
|
|
|
|
cmakeBuildDir = "build_dir";
|
|
|
|
|
2022-01-14 21:29:38 +01:00
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/google/nsync";
|
|
|
|
description = "C library that exports various synchronization primitives";
|
|
|
|
license = lib.licenses.asl20;
|
2022-10-01 14:22:33 +02:00
|
|
|
maintainers = with lib.maintainers; [ puffnfresh Luflosi ];
|
2022-10-01 14:28:18 +02:00
|
|
|
platforms = lib.platforms.unix;
|
2022-01-14 21:29:38 +01:00
|
|
|
};
|
|
|
|
}
|