Files
Ihar HrachyshkaandWolfgang Walther 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

35 lines
730 B
Nix

{
lib,
stdenv,
fetchurl,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ode";
version = "0.16.6";
src = fetchurl {
url = "https://bitbucket.org/odedevs/ode/downloads/ode-${finalAttrs.version}.tar.gz";
hash = "sha256-yRooxv8mUChHhKeccmo4DWr+yH7PejXDKmvgxbdFE+g=";
};
env.CXXFLAGS = lib.optionalString stdenv.cc.isClang (toString [
"-std=c++14"
"-Wno-error=c++11-narrowing"
]);
meta = {
description = "Open Dynamics Engine";
mainProgram = "ode-config";
homepage = "https://www.ode.org";
license = with lib.licenses; [
bsd3
lgpl21Only
lgpl3Only
zlib
];
maintainers = with lib.maintainers; [ wegank ];
platforms = lib.platforms.unix;
};
})