mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
32 lines
724 B
Nix
32 lines
724 B
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, cmake
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nsync";
|
|
version = "1.25.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-bdnYrMnBnpnEKGuMlDLILfzgwfu/e5tyMdSDWqreyto=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|