nixpkgs/pkgs/by-name/og/ogdf/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

42 lines
1.3 KiB
Nix

{ lib, stdenv, fetchFromGitHub, cmake, doxygen }:
stdenv.mkDerivation rec {
pname = "ogdf";
version = "2022.02";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "dogwood-202202";
sha256 = "sha256-zkQ6sS0EUmiigv3T7To+tG3XbFbR3XEbFo15oQ0bWf0=";
};
nativeBuildInputs = [ cmake doxygen ];
cmakeFlags = [
"-DCMAKE_CXX_FLAGS=-fPIC"
"-DBUILD_SHARED_LIBS=ON"
"-DOGDF_WARNING_ERRORS=OFF"
];
meta = with lib; {
description = "Open Graph Drawing Framework/Open Graph algorithms and Data structure Framework";
homepage = "http://www.ogdf.net";
license = licenses.gpl2;
maintainers = [ maintainers.ianwookim ];
platforms = platforms.all;
longDescription = ''
OGDF stands both for Open Graph Drawing Framework (the original name) and
Open Graph algorithms and Data structures Framework.
OGDF is a self-contained C++ library for graph algorithms, in particular
for (but not restricted to) automatic graph drawing. It offers sophisticated
algorithms and data structures to use within your own applications or
scientific projects.
OGDF is developed and supported by Osnabrück University, TU Dortmund,
University of Cologne, University of Konstanz, and TU Ilmenau.
'';
};
}