nixpkgs/pkgs/by-name/od/ode/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

35 lines
853 B
Nix

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