Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 34 lines 840 B view raw
1{ lib 2, stdenv 3, fetchurl 4, darwin 5}: 6 7stdenv.mkDerivation (finalAttrs: { 8 pname = "ode"; 9 version = "0.16.5"; 10 11 src = fetchurl { 12 url = "https://bitbucket.org/odedevs/ode/downloads/ode-${finalAttrs.version}.tar.gz"; 13 hash = "sha256-uode3RZFcJWHle6qcPFIU7/DTMmHH4rd6NpH4SvVRnk="; 14 }; 15 16 buildInputs = lib.optionals stdenv.isDarwin [ 17 darwin.apple_sdk.frameworks.CoreServices 18 darwin.apple_sdk.frameworks.GLUT 19 ]; 20 21 env.CXXFLAGS = lib.optionalString stdenv.cc.isClang (toString [ 22 "-std=c++14" 23 "-Wno-error=c++11-narrowing" 24 ]); 25 26 meta = with lib; { 27 description = "Open Dynamics Engine"; 28 mainProgram = "ode-config"; 29 homepage = "https://www.ode.org"; 30 license = with licenses; [ bsd3 lgpl21Only lgpl3Only zlib ]; 31 maintainers = with maintainers; [ wegank ]; 32 platforms = platforms.unix; 33 }; 34})