9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
31 lines
722 B
Nix
31 lines
722 B
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, cmake
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nsync";
|
|
version = "1.26.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-pE9waDI+6LQwbyPJ4zROoF93Vt6+SETxxJ/UxeZE5WE=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
# Needed for case-insensitive filesystems like on macOS
|
|
# because a file named BUILD exists already.
|
|
cmakeBuildDir = "build_dir";
|
|
|
|
meta = {
|
|
homepage = "https://github.com/google/nsync";
|
|
description = "C library that exports various synchronization primitives";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ puffnfresh Luflosi ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|