mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
c7dd09e342
Additionally: - Remove obsolete postPatch. - Add wrapGAppsHook3 to nativeBuildInputs. This is taken from the slade package. This fixes the application crashing with "No GSettings schemas are installed on the system" when using File > Open or File > Open Directory.
78 lines
1.2 KiB
Nix
78 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, which
|
|
, zip
|
|
, wxGTK
|
|
, gtk3
|
|
, sfml
|
|
, fluidsynth
|
|
, curl
|
|
, freeimage
|
|
, ftgl
|
|
, glew
|
|
, lua
|
|
, mpg123
|
|
, wrapGAppsHook3
|
|
, unstableGitUpdater
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "slade";
|
|
version = "3.2.6-unstable-2024-11-26";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sirjuddington";
|
|
repo = "SLADE";
|
|
rev = "f8ca52edf98e649c6455f6cc32f7aa361e41babe";
|
|
hash = "sha256-h43kYVLDxr1Z3vKJ+IZaDmvkerUdGJFLzJrPj0b2VUI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
which
|
|
zip
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
wxGTK
|
|
gtk3
|
|
sfml
|
|
fluidsynth
|
|
curl
|
|
freeimage
|
|
ftgl
|
|
glew
|
|
lua
|
|
mpg123
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DwxWidgets_LIBRARIES=${wxGTK}/lib"
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-narrowing";
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(
|
|
--prefix GDK_BACKEND : x11
|
|
)
|
|
'';
|
|
|
|
passthru.updateScript = unstableGitUpdater {
|
|
url = "https://github.com/sirjuddington/SLADE.git";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Doom editor";
|
|
homepage = "http://slade.mancubus.net/";
|
|
license = licenses.gpl2Only; # https://github.com/sirjuddington/SLADE/issues/1754
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ ertes ];
|
|
};
|
|
}
|