mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 19:51:17 +00:00
wxc: init at 1.0.0.2
This commit is contained in:
parent
ac4054068e
commit
ee82ceaba6
43
pkgs/by-name/wx/wxc/package.nix
Normal file
43
pkgs/by-name/wx/wxc/package.nix
Normal file
|
@ -0,0 +1,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;
|
||||
};
|
||||
})
|
Loading…
Reference in a new issue