blob: 0b44328fb8e4c411fd17def368363224f21c67d3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{ lib
, stdenv
, fetchFromGitHub
, cmake
, inih
, ninja
, pkg-config
, qtbase
, wrapQtAppsHook
, makeDesktopItem
, copyDesktopItems
}:
stdenv.mkDerivation rec {
pname = "qzdl";
version = "unstable-2023-04-04";
src = fetchFromGitHub {
owner = "qbasicer";
repo = "qzdl";
rev = "44aaec0182e781a3cef373e5c795c9dbd9cd61bb";
hash = "sha256-K/mJQb7uO2H94krWJIJtFRYd6BAe2TX1xBt6fGBb1tA=";
};
patches = [
./non-bundled-inih.patch
];
nativeBuildInputs = [
cmake
copyDesktopItems
ninja
pkg-config
wrapQtAppsHook
];
buildInputs = [
inih
qtbase
];
postInstall = ''
install -Dm644 $src/res/zdl3.svg $out/share/icons/hicolor/scalable/apps/zdl3.svg
'';
desktopItems = [
(makeDesktopItem {
name = "zdl3";
exec = "zdl %U";
icon = "zdl3";
desktopName = "ZDL";
genericName = "A ZDoom WAD Launcher";
categories = [ "Game" ];
})
];
meta = with lib; {
description = "A ZDoom WAD Launcher";
homepage = "https://zdl.vectec.net";
license = licenses.gpl3Only;
inherit (qtbase.meta) platforms;
maintainers = with maintainers; [ azahi ];
mainProgram = "zdl";
};
}
|