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