mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +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.
41 lines
831 B
Nix
41 lines
831 B
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, libglut
|
|
, libGL
|
|
, libGLU
|
|
, libX11
|
|
, libXext
|
|
, libXi
|
|
, libXmu
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "glui";
|
|
version = "2.37";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "libglui";
|
|
repo = "glui";
|
|
rev = version;
|
|
sha256 = "0qg2y8w95s03zay1qsqs8pqxxlg6l9kwm7rrs1qmx0h22sxb360i";
|
|
};
|
|
|
|
buildInputs = [ libglut libGLU libGL libXmu libXext libX11 libXi ];
|
|
|
|
installPhase = ''
|
|
mkdir -p "$out"/{bin,lib,share/glui/doc,include}
|
|
cp -rT bin "$out/bin"
|
|
cp -rT lib "$out/lib"
|
|
cp -rT include "$out/include"
|
|
cp -rT doc "$out/share/glui/doc"
|
|
cp LICENSE.txt "$out/share/glui/doc"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "User interface library using OpenGL";
|
|
license = licenses.zlib ;
|
|
maintainers = [ maintainers.raskin ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|