2021-07-24 15:53:20 +02:00
|
|
|
{ lib, stdenv, buildNimblePackage, fetchFromGitHub, pkg-config, gtk3,
|
2019-05-22 16:16:32 +02:00
|
|
|
wrapGAppsHook }:
|
2019-05-22 14:13:09 +02:00
|
|
|
|
|
|
|
buildNimblePackage rec {
|
|
|
|
name = "ui-${version}";
|
|
|
|
version = "0.9.3";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nim-lang";
|
|
|
|
repo = "ui";
|
|
|
|
rev = "2a2fd1e9050981dc5fa59529d4d2fbd6daaf793c";
|
|
|
|
sha256 = "1dc6i8qrw6la2mzxlhcvvk1sm3gsi21bilrq213zqn949wsjxbzb";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
rm ui/libui/common/OLD_table.c
|
|
|
|
rm ui/libui/unix/OLD_table.c
|
|
|
|
rm ui/libui/darwin/OLD_table.m
|
|
|
|
'';
|
|
|
|
|
2019-05-22 16:16:32 +02:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
|
2019-05-22 15:22:57 +02:00
|
|
|
|
|
|
|
buildInputs = [ gtk3 ];
|
2019-05-22 14:13:09 +02:00
|
|
|
|
2021-07-24 15:53:20 +02:00
|
|
|
meta = with lib; {
|
2019-05-22 14:13:09 +02:00
|
|
|
description = "Beginnings of what might become Nim's official UI library";
|
|
|
|
homepage = https://github.com/nim-lang/ui;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lurchi ];
|
|
|
|
platforms = platforms.gnu ++ platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|