nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 43 lines 1.1 kB view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 cmake, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "nsync"; 10 version = "1.29.2"; 11 12 src = fetchFromGitHub { 13 owner = "google"; 14 repo = "nsync"; 15 rev = finalAttrs.version; 16 hash = "sha256-RAwrS8Vz5fZwZRvF4OQfn8Ls11S8OIV2TmJpNrBE4MI="; 17 }; 18 19 postPatch = '' 20 # CMake 3.0 is deprecated and is no longer supported by CMake > 4 21 # inline of https://github.com/google/nsync/pull/27 22 substituteInPlace CMakeLists.txt \ 23 --replace-fail "cmake_minimum_required (VERSION 2.8.12)" \ 24 "cmake_minimum_required (VERSION 3.10)" 25 ''; 26 27 nativeBuildInputs = [ cmake ]; 28 29 # Needed for case-insensitive filesystems like on macOS 30 # because a file named BUILD exists already. 31 cmakeBuildDir = "build_dir"; 32 33 meta = { 34 homepage = "https://github.com/google/nsync"; 35 description = "C library that exports various synchronization primitives"; 36 license = lib.licenses.asl20; 37 maintainers = with lib.maintainers; [ 38 puffnfresh 39 Luflosi 40 ]; 41 platforms = lib.platforms.unix; 42 }; 43})