about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/nsync/default.nix
blob: a00893c157326c4977369c627316119cc7af9c00 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv
, lib
, fetchFromGitHub
, cmake
}:

stdenv.mkDerivation rec {
  pname = "nsync";
  version = "1.24.0";

  src = fetchFromGitHub {
    owner = "google";
    repo = pname;
    rev = version;
    sha256 = "sha256-jQJtlBDR6efBe1tFOUOZ6awaMTT33qM/GbvbwiWTZxw=";
  };

  nativeBuildInputs = [ cmake ];

  meta = {
    homepage = "https://github.com/google/nsync";
    description = "C library that exports various synchronization primitives";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ puffnfresh ];
    # On macOS we get an error for some reason:
    # > mkdir: cannot create directory 'build': File exists
    platforms = lib.platforms.linux;
  };
}