blob: 42de45ecfcf174b20167c6a99ed14d1e39c1a95c (
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
|
{ lib
, stdenv
, fetchFromGitea
, cmake
, libGL
, wxGTK32
}:
stdenv.mkDerivation (finalAttrs: {
pname = "wxc";
version = "1.0.0.2";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "wxHaskell";
repo = "wxHaskell";
rev = "wxc-${finalAttrs.version}";
hash = "sha256-wjby7F+Xi+H4avLGZxKJ7/LY2CJAGMIwBM7mfVzI1Bg=";
};
sourceRoot = finalAttrs.src.name + "/wxc";
nativeBuildInputs = [
cmake
wxGTK32 # in nativeBuildInputs because of wx-config
];
buildInputs = [
libGL
];
preConfigure = ''
bash generate-version-header.sh
'';
meta = {
description = "C language binding for wxWidgets";
homepage = "https://wiki.haskell.org/WxHaskell";
license = lib.licenses.wxWindows;
maintainers = with lib.maintainers; [ fgaz ];
platforms = wxGTK32.meta.platforms;
};
})
|