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
722 B
Nix
Raw Permalink Normal View History

2022-01-14 21:29:38 +01:00
{ stdenv
, lib
, fetchFromGitHub
, cmake
}:
stdenv.mkDerivation rec {
pname = "nsync";
version = "1.26.0";
2022-01-14 21:29:38 +01:00
src = fetchFromGitHub {
owner = "google";
repo = pname;
2022-01-14 21:29:38 +01:00
rev = version;
hash = "sha256-pE9waDI+6LQwbyPJ4zROoF93Vt6+SETxxJ/UxeZE5WE=";
2022-01-14 21:29:38 +01:00
};
nativeBuildInputs = [ cmake ];
2022-10-01 14:28:18 +02:00
# Needed for case-insensitive filesystems like on macOS
# because a file named BUILD exists already.
cmakeBuildDir = "build_dir";
2022-01-14 21:29:38 +01:00
meta = {
homepage = "https://github.com/google/nsync";
description = "C library that exports various synchronization primitives";
license = lib.licenses.asl20;
2022-10-01 14:22:33 +02:00
maintainers = with lib.maintainers; [ puffnfresh Luflosi ];
2022-10-01 14:28:18 +02:00
platforms = lib.platforms.unix;
2022-01-14 21:29:38 +01:00
};
}