diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 27 |
1 files changed, 26 insertions, 1 deletions
@@ -12,9 +12,21 @@ }: let version = "0.1.0"; package = { + # nix stuff mkDerivation, lib, + # haskell deps base, + c-expr-runtime, + hs-bindgen-runtime, + # pkgconfig deps + libGL, + libX11, + libXcursor, + libXi, + xrandr, + # shell deps + hs-bindgen-cli, }: mkDerivation { pname = "hs-rgfw"; @@ -22,11 +34,24 @@ src = ./.; libraryHaskellDepends = [ base + c-expr-runtime + hs-bindgen-runtime ]; libraryPkgconfigDepends = [ + libGL + libX11 + libXcursor + libXi + xrandr ]; + preBuild = '' + set -x + export PATH=${hs-bindgen-cli}/bin:\$PATH + ./generate.sh + set +x + ''; homepage = "https://git.mtgmonkey.net/Andromeda/hs-rgfw"; - license = lib.licenses.bsd3; + license = lib.licenses.gpl3Only; platforms = ["x86_64-linux"]; }; system = "x86_64-linux"; |
