nixpkgs/pkgs/tools/graphics/glee/default.nix
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00

34 lines
820 B
Nix

{lib, stdenv, fetchgit, cmake, libGLU, libGL, xorg }:
stdenv.mkDerivation rec {
pname = "glee";
rev = "f727ec7463d514b6279981d12833f2e11d62b33d";
version = "20170205-${stdenv.lib.strings.substring 0 7 rev}";
src = fetchgit {
inherit rev;
url = "https://git.code.sf.net/p/${pname}/${pname}";
sha256 = "13mf3s7nvmj26vr2wbcg08l4xxqsc1ha41sx3bfghvq8c5qpk2ph";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ libGLU libGL xorg.libX11 ];
configureScript = ''
cmake
'';
preInstall = ''
sed -i 's/readme/Readme/' cmake_install.cmake
'';
meta = with lib; {
description = "GL Easy Extension Library";
homepage = "https://sourceforge.net/p/glee/glee/";
maintainers = with maintainers; [ nand0p ];
platforms = platforms.linux;
license = licenses.gpl3;
};
}