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