f8e3247113
Includes new dependency packages: - nimPackages.python: 1.2 - nimPackages.rocksdb: 0.2.0 - nimPackages.snappy: 0.1.0 - nimPackages.spryvm: 0.9.3 - nimPackages.stew: 0.1.0 - nimPackages.tempfile: 0.1.7 - nimPackages.ui: 0.9.4
24 lines
677 B
Nix
24 lines
677 B
Nix
{ lib, buildNimPackage, fetchFromGitHub, libui, pkg-config }:
|
|
|
|
buildNimPackage rec {
|
|
pname = "ui";
|
|
version = "0.9.4";
|
|
src = fetchFromGitHub {
|
|
owner = "nim-lang";
|
|
repo = pname;
|
|
rev = "547e1cea8e9fb68c138c422b77af0a3152e50210";
|
|
hash = "sha256-rcvC0TO1r2zU7WEYfcsi/qX+nRITwKj7Fkqd4fHgTwU=";
|
|
};
|
|
propagatedBuildInputs = [ libui ];
|
|
propagatedNativeBuildInputs = [ pkg-config ];
|
|
postPatch = ''
|
|
echo {.passL: r\"$(pkg-config --libs libui)\".} >> ui/rawui.nim
|
|
'';
|
|
doCheck = true;
|
|
meta = with lib;
|
|
src.meta // {
|
|
description = "Nim bindings to libui";
|
|
license = [ licenses.mit ];
|
|
maintainers = [ maintainers.ehmry ];
|
|
};
|
|
}
|