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