nixpkgs/pkgs/development/libraries/nsync/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
724 B
Nix
Raw Normal View History

2022-01-14 20:29:38 +00:00
{ stdenv
, lib
, fetchFromGitHub
, cmake
}:
stdenv.mkDerivation rec {
pname = "nsync";
version = "1.25.0";
2022-01-14 20:29:38 +00:00
src = fetchFromGitHub {
owner = "google";
repo = pname;
2022-01-14 20:29:38 +00:00
rev = version;
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
};
}