Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5 cmake,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "nsync";
10 version = "1.29.2";
11
12 src = fetchFromGitHub {
13 owner = "google";
14 repo = "nsync";
15 rev = version;
16 hash = "sha256-RAwrS8Vz5fZwZRvF4OQfn8Ls11S8OIV2TmJpNrBE4MI=";
17 };
18
19 nativeBuildInputs = [ cmake ];
20
21 # Needed for case-insensitive filesystems like on macOS
22 # because a file named BUILD exists already.
23 cmakeBuildDir = "build_dir";
24
25 meta = {
26 homepage = "https://github.com/google/nsync";
27 description = "C library that exports various synchronization primitives";
28 license = lib.licenses.asl20;
29 maintainers = with lib.maintainers; [
30 puffnfresh
31 Luflosi
32 ];
33 platforms = lib.platforms.unix;
34 };
35}