Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions GPipe-GLFW/GPipe-GLFW.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ library
hs-source-dirs: src
build-depends: base >= 4.7 && <5
, stm >= 2.4 && <3
, containers >= 0.5 && <0.7
, containers >= 0.5 && <0.8
, async >= 2.1 && <2.3
, GLFW-b >= 3.2 && <3.4
, GPipe >= 2.2 && <2.5
, GPipe >= 2.2 && <2.6
ghc-options: -Wall -Wno-orphans -Wall
default-language: Haskell2010
exposed-modules: Graphics.GPipe.Context.GLFW
Expand Down
2 changes: 1 addition & 1 deletion cabal.project
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
packages: ./GPipe-GLFW
packages: ./Smoketests
packages: ../GPipe-Core/GPipe-Core
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
description = "GPipe-GLFW - GLFW context for GPipe (fork)";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
hp = pkgs.haskellPackages;
ghcWithPackages = hp.ghcWithPackages (p: [
p.transformers
p.exception-transformers
p.containers
p.Boolean
p.hashtables
p.gl
p.linear
p.stm
p.async
p.GLFW-b
]);
in {
devShells.default = pkgs.mkShell {
buildInputs = [
ghcWithPackages
hp.cabal-install
pkgs.pkg-config
pkgs.libGL
pkgs.libGLU
pkgs.glfw
];
};
}
);
}