mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
571c71e6f7
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.
45 lines
824 B
Nix
45 lines
824 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, cmake
|
|
, zlib
|
|
, libpng
|
|
, libGL
|
|
, libGLU
|
|
, libglut
|
|
, darwin
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gl2ps";
|
|
version = "1.4.2";
|
|
|
|
src = fetchurl {
|
|
url = "http://geuz.org/gl2ps/src/${pname}-${version}.tgz";
|
|
sha256 = "1sgzv547h7hrskb9qd0x5yp45kmhvibjwj2mfswv95lg070h074d";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [
|
|
zlib
|
|
libpng
|
|
] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
|
|
libGL
|
|
libGLU
|
|
libglut
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
darwin.apple_sdk.frameworks.OpenGL
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "http://geuz.org/gl2ps";
|
|
description = "OpenGL to PostScript printing library";
|
|
platforms = platforms.all;
|
|
license = licenses.lgpl2;
|
|
maintainers = with maintainers; [ raskin twhitehead ];
|
|
};
|
|
}
|