Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 35 lines 752 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fixDarwinDylibNames, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "openlibm"; 10 version = "0.8.7"; 11 12 src = fetchFromGitHub { 13 owner = "JuliaLang"; 14 repo = "openlibm"; 15 rev = "v${version}"; 16 sha256 = "sha256-fSEszCJ1PXkSydTLk8KAyu7zffUrKf+7a1ZDf3Wl/lE="; 17 }; 18 19 nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ 20 fixDarwinDylibNames 21 ]; 22 23 makeFlags = [ 24 "prefix=$(out)" 25 "CC=${stdenv.cc.targetPrefix}cc" 26 ]; 27 28 meta = { 29 description = "High quality system independent, portable, open source libm implementation"; 30 homepage = "https://openlibm.org/"; 31 license = lib.licenses.mit; 32 maintainers = [ lib.maintainers.ttuegel ]; 33 platforms = lib.platforms.all; 34 }; 35}