Skip to content

Commit

Permalink
fix: nix configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Anut-py committed May 16, 2024
1 parent b324430 commit 182acdc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ mkDerivation, base, containers, exceptions, lens, template-haskell, text, bytestring
, lib, systemDeps, buildExamples, ...
, linear, lib, systemDeps, buildExamples, ...
}:
mkDerivation {
pname = "h-raylib";
Expand All @@ -8,7 +8,7 @@ mkDerivation {
isLibrary = true;
isExecutable = buildExamples;
configureFlags = ["-fplatform-nixos"] ++ lib.optional buildExamples ["-fexamples"];
libraryHaskellDepends = [ base containers exceptions lens template-haskell text bytestring ];
libraryHaskellDepends = [ base containers exceptions lens linear template-haskell text bytestring ];
librarySystemDepends = systemDeps;
description = "Raylib bindings for Haskell";
license = lib.licenses.asl20;
Expand Down
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

outputs = { self, nixpkgs, ... }@inputs:
let
supportedSystems = [ "x86_64-linux" "x86_64-darwin" ];
supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
forAllSystems' = nixpkgs.lib.genAttrs;
forAllSystems = forAllSystems' supportedSystems;

Expand Down Expand Up @@ -41,7 +41,7 @@
sha256 = rayguiHash;
};
nativeBuildInputs = [];
postFixup = "mkdir -p $out/include/ && cp ./src/raygui.h $out/include/ && cp ./examples/styles/*.h $out/include/";
postFixup = "mkdir -p $out/include/ && cp ./src/raygui.h $out/include/ && cp ./styles/**/*.h $out/include/";
};
# temporary fix for CI/CD
# TODO: remove when github.com/NixOS/nixpkgs/pull/293296 gets merged
Expand Down
2 changes: 1 addition & 1 deletion h-raylib.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ library
, containers >=0.6.0 && <0.7.0
, exceptions >=0.10.4 && <0.10.8
, lens >=4.0 && <5.2.4
, linear >=1.23 && <1.24
, linear >=1.22 && <1.23
, template-haskell >=2.16.0.0 && <2.22.0.0
, text >=2.0 && <2.2

Expand Down

0 comments on commit 182acdc

Please sign in to comment.