From 486a7ef01236d79ea77d3a31f58ba32e97ba1e68 Mon Sep 17 00:00:00 2001 From: nek0 Date: Sun, 6 Jan 2019 03:14:29 +0100 Subject: [PATCH] fix build system --- shell.nix | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/shell.nix b/shell.nix index 00f03df..e616402 100644 --- a/shell.nix +++ b/shell.nix @@ -11,7 +11,7 @@ let mkDerivation { pname = "nanovg"; version = "0.6.0.0"; - sha256 = "e35a2772f2a2e71916013cab70eeb8eedd6f66b5490ddf7ce237c8c76895d496"; + src = ../nanovg-hs; isLibrary = true; isExecutable = true; doCheck = false; @@ -25,6 +25,46 @@ let license = stdenv.lib.licenses.isc; }) {}; + glib = with haskellPackages; callPackage( + { mkDerivation, base, bytestring, Cabal, containers, glib + , stdenv, text, utf8-string + }: + mkDerivation { + pname = "glib"; + version = "0.13.6.0"; + sha256 = "4e71062c6a458440294d820e21449aa4666deed2ea233ef5915da7c1d4aee8eb"; + setupHaskellDepends = [ base Cabal gtk2hs-buildtools ]; + libraryHaskellDepends = [ + base bytestring containers text utf8-string + ]; + libraryPkgconfigDepends = [ pkgs.glib ]; + homepage = "http://projects.haskell.org/gtk2hs/"; + description = "Binding to the GLIB library for Gtk2Hs"; + license = stdenv.lib.licenses.lgpl21; + }) {}; + + gtk2hs-buildtools = with haskellPackages; callPackage( + { mkDerivation, alex, array, base, Cabal, containers, directory + , filepath, happy, hashtables, pretty, process, random, stdenv + }: + mkDerivation { + pname = "gtk2hs-buildtools"; + version = "0.13.4.0"; + src = ../gtk2hs/tools; + isLibrary = true; + isExecutable = true; + enableSeparateDataOutput = true; + libraryHaskellDepends = [ + array base Cabal containers directory filepath hashtables pretty + process random + ]; + libraryToolDepends = [ alex happy ]; + executableHaskellDepends = [ base ]; + homepage = "http://projects.haskell.org/gtk2hs/"; + description = "Tools to build the Gtk2Hs suite of User Interface libraries"; + license = stdenv.lib.licenses.gpl2; + }) {}; + sdl2Nek0 = with haskellPackages; callPackage( { mkDerivation, base, bytestring, deepseq, exceptions, linear, SDL2 , StateVar, stdenv, text, transformers, vector, weigh @@ -48,7 +88,7 @@ let }) {}; f = { mkDerivation, base, bytestring, clock, containers, deepseq - , glib, linear, matrix, monad-loops, monad-parallel, mtl + , linear, matrix, monad-loops, monad-parallel, mtl , OpenGL, random, stdenv, stm, text, uuid, vector }: mkDerivation {