mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03: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.
32 lines
935 B
Nix
32 lines
935 B
Nix
{lib, stdenv, fetchurl, SDL, libGLU, libGL, zlib, libpng, libvorbis, libmikmod, SDL_sound } :
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gltron";
|
|
version = "0.70";
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/gltron/gltron-${version}-source.tar.gz";
|
|
sha256 = "e0c8ebb41a18a1f8d7302a9c2cb466f5b1dd63e9a9966c769075e6b6bdad8bb0";
|
|
};
|
|
|
|
patches = [ ./gentoo-prototypes.patch ];
|
|
|
|
postPatch = ''
|
|
# Fix https://sourceforge.net/p/gltron/bugs/15
|
|
sed -i /__USE_MISC/d lua/src/lib/liolib.c
|
|
'';
|
|
|
|
# The build fails, unless we disable the default -Wall -Werror
|
|
configureFlags = [ "--disable-warn" ];
|
|
|
|
buildInputs = [ SDL libGLU libGL zlib libpng libvorbis libmikmod SDL_sound ];
|
|
|
|
meta = {
|
|
homepage = "http://www.gltron.org/";
|
|
description = "Game based on the movie Tron";
|
|
mainProgram = "gltron";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = [ ];
|
|
platforms = with lib.platforms; linux;
|
|
};
|
|
}
|