nixpkgs/pkgs/applications/misc/slade/git.nix

69 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
2021-05-14 03:49:07 +00:00
, cmake
, pkg-config
, which
, zip
2021-05-14 03:49:07 +00:00
, wxGTK
, gtk3
2021-05-14 03:49:07 +00:00
, sfml
, fluidsynth
, curl
, freeimage
, ftgl
, glew
, lua
, mpg123
}:
2018-02-03 23:06:36 +00:00
stdenv.mkDerivation rec {
pname = "slade";
version = "unstable-2022-08-15";
2018-02-03 23:06:36 +00:00
src = fetchFromGitHub {
owner = "sirjuddington";
repo = "SLADE";
rev = "1a0d25eec54f9ca2eb3667676d93fb0b6b6aea26";
sha256 = "sha256-mtaJr4HJbp2UnzwaLq12V69DqPYDmSNqMGiuPpMlznI=";
2018-02-03 23:06:36 +00:00
};
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
];
2021-05-14 03:49:07 +00:00
cmakeFlags = [
"-DwxWidgets_LIBRARIES=${wxGTK}/lib"
2021-05-14 03:49:07 +00:00
];
env.NIX_CFLAGS_COMPILE = "-Wno-narrowing";
2018-02-03 23:06:36 +00:00
meta = with lib; {
2018-02-03 23:06:36 +00:00
description = "Doom editor";
homepage = "http://slade.mancubus.net/";
2018-02-03 23:06:36 +00:00
license = licenses.gpl2Plus;
platforms = platforms.linux;
2018-02-03 23:06:36 +00:00
maintainers = with maintainers; [ ertes ];
};
}