2024-04-21 15:54:59 +00:00
|
|
|
{ lib, stdenv, cmake, fetchFromBitbucket, wrapQtAppsHook, pkg-config, qtbase, qttools, qtmultimedia, zlib, bzip2, xxd }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
stdenv.mkDerivation {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "doomseeker";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2023-08-09";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromBitbucket {
|
|
|
|
owner = "Doomseeker";
|
|
|
|
repo = "doomseeker";
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "4cce0a37b134283ed38ee4814bb282773f9c2ed1";
|
|
|
|
hash = "sha256-J7gesOo8NUPuVaU0o4rCGzLrqr3IIMAchulWZG3HTqg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
patches = [ ./dont_update_gitinfo.patch ./add_gitinfo.patch ./fix_paths.patch ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeBuildInputs = [ wrapQtAppsHook cmake qttools pkg-config xxd ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ qtbase qtmultimedia zlib bzip2 ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
hardeningDisable = lib.optional stdenv.isDarwin "format";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
# Doomseeker looks for the engines in the program directory
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/* $out/lib/doomseeker/
|
|
|
|
ln -s $out/lib/doomseeker/doomseeker $out/bin/
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://doomseeker.drdteam.org/";
|
|
|
|
description = "Multiplayer server browser for many Doom source ports";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "doomseeker";
|
2024-07-27 06:49:29 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|