From 0d28d28ee1e576f8d23630f96ddc0cdb640d9092 Mon Sep 17 00:00:00 2001 From: nek0 Date: Mon, 2 Jul 2018 18:21:41 +0200 Subject: [PATCH] fix algebraic-graphs --- shell.nix | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/shell.nix b/shell.nix index 289e0e3..0fbf9be 100644 --- a/shell.nix +++ b/shell.nix @@ -32,6 +32,40 @@ let hydraPlatforms = pkgs.stdenv.lib.platforms.none; }) { inherit (pkgs) glew; inherit (pkgs) libGL; inherit (pkgs) libGLU; inherit (pkgs) pkgconfig; }; + agNek0 = with haskellPackages; callPackage ( + { mkDerivation, array, base, base-orphans, containers + , criterion, deepseq, extra, QuickCheck, stdenv + }: + mkDerivation { + pname = "algebraic-graphs"; + version = "0.1.1.1"; + sha256 = "8747a7d6f7a328b6073c1904883087a6a8e9a02d3bd8a5e35174c5f1c1cd1231"; + libraryHaskellDepends = [ + array base base-compat containers deepseq + ]; + testHaskellDepends = [ + base bcNek0 base-orphans containers extra QuickCheck + ]; + benchmarkHaskellDepends = [ + base base-compat containers criterion + ]; + homepage = "https://github.com/snowleopard/alga"; + doCheck = false; + description = "A library for algebraic graph construction and transformation"; + license = stdenv.lib.licenses.mit; + }) {}; + + bcNek0 = with haskellPackages; callpackage ( + { mkDerivation, base, stdenv, unix }: + mkDerivation { + pname = "base-compat"; + version = "0.9.3"; + libraryHaskellDepends = [ base unix ]; + description = "A compatibility layer for base"; + doCheck = false; + license = stdenv.lib.licenses.mit; + }) {}; + affectionNeko = with haskellPackages; callPackage ({ mkDerivation , base, bytestring, clock, containers, glib, linear, monad-loops, monad-parallel , mtl, OpenGL, sdl2, stdenv, stm, text, uuid, vector }: @@ -79,7 +113,7 @@ let f = { mkDerivation, astar, base, containers, linear , matrix, OpenGL, random, sdl2, stdenv, stm, text, unordered-containers - , vector, JuicyPixels, JuicyPixels-extra, bytestring, algebraic-graphs + , vector, JuicyPixels, JuicyPixels-extra, bytestring }: mkDerivation { pname = "tracer-game"; @@ -91,7 +125,7 @@ let executableHaskellDepends = [ affectionNeko astar base containers ecstasyNeko linear matrix nanovgNeko OpenGL random sdl2 stm text unordered-containers vector JuicyPixels - JuicyPixels-extra bytestring algebraic-graphs + JuicyPixels-extra bytestring agNek0 ]; license = stdenv.lib.licenses.gpl3; };