mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
f9fdf2d402
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
69 lines
1.0 KiB
Nix
69 lines
1.0 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, which
|
|
, zip
|
|
, wxGTK
|
|
, gtk3
|
|
, sfml
|
|
, fluidsynth
|
|
, curl
|
|
, freeimage
|
|
, ftgl
|
|
, glew
|
|
, lua
|
|
, mpg123
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "slade";
|
|
version = "3.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sirjuddington";
|
|
repo = "SLADE";
|
|
rev = version;
|
|
sha256 = "sha256-KFRX3sfI//Op/h/EfEuAZOY22RO5qNXmvhSksC0aS4U=";
|
|
};
|
|
|
|
postPatch = lib.optionalString (!stdenv.hostPlatform.isx86) ''
|
|
sed -i '/-msse/d' src/CMakeLists.txt
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
which
|
|
zip
|
|
];
|
|
|
|
buildInputs = [
|
|
wxGTK
|
|
gtk3
|
|
sfml
|
|
fluidsynth
|
|
curl
|
|
freeimage
|
|
ftgl
|
|
glew
|
|
lua
|
|
mpg123
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DwxWidgets_LIBRARIES=${wxGTK}/lib"
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-narrowing";
|
|
|
|
meta = with lib; {
|
|
description = "Doom editor";
|
|
homepage = "http://slade.mancubus.net/";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
};
|
|
}
|