mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
38 lines
1.0 KiB
Nix
38 lines
1.0 KiB
Nix
{ stdenv, fetchurl, texinfo, libXext, xorgproto, libX11
|
|
, libXpm, libXt, libXcursor, alsaLib, cmake, zlib, libpng, libvorbis
|
|
, libXxf86dga, libXxf86misc
|
|
, libXxf86vm, openal, libGLU_combined }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "allegro";
|
|
version="4.4.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/liballeg/allegro5/releases/download/${version}/${pname}-${version}.tar.gz";
|
|
sha256 = "1p0ghkmpc4kwij1z9rzxfv7adnpy4ayi0ifahlns1bdzgmbyf88v";
|
|
};
|
|
|
|
patches = [
|
|
./allegro4-mesa-18.2.5.patch
|
|
./nix-unstable-sandbox-fix.patch
|
|
];
|
|
|
|
buildInputs = [
|
|
texinfo libXext xorgproto libX11 libXpm libXt libXcursor
|
|
alsaLib cmake zlib libpng libvorbis libXxf86dga libXxf86misc
|
|
libXxf86vm openal libGLU_combined
|
|
];
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
cmakeFlags = [ "-DCMAKE_SKIP_RPATH=ON" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A game programming library";
|
|
homepage = https://liballeg.org/;
|
|
license = licenses.free; # giftware
|
|
maintainers = [ maintainers.raskin ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|