summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix27
1 files changed, 26 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index 45af066..0ff61ae 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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";