From 13d057278d42e4bb1eab881ef3cb165280e8fdb7 Mon Sep 17 00:00:00 2001 From: andromeda Date: Sat, 24 Jan 2026 18:16:40 +0100 Subject: license, min build? --- flake.nix | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'flake.nix') 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"; -- cgit v1.3.1