fix derivation

This commit is contained in:
nek0 2018-08-03 02:18:19 +02:00
parent 5e8df5a022
commit a3a0538c35

View file

@ -4,6 +4,27 @@ let
inherit (nixpkgs) pkgs; inherit (nixpkgs) pkgs;
sdl2Nek0 = with haskellPackages; callPackage (
{ mkDerivation, base, bytestring, exceptions, linear, SDL2
, StateVar, stdenv, text, transformers, vector
}:
mkDerivation {
pname = "sdl2";
version = "2.4.0.1";
sha256 = "9a898d0acd6d7a4f341b3127d2c44e64b577e1128bc0b4d93a17ac510cb5644d";
isLibrary = true;
isExecutable = true;
enableSeparateDataOutput = true;
libraryHaskellDepends = [
base bytestring exceptions linear StateVar text transformers vector
];
doCheck = false;
librarySystemDepends = [ SDL2 ];
libraryPkgconfigDepends = [ SDL2 ];
description = "Both high- and low-level bindings to the SDL library (version 2.0.4+).";
license = stdenv.lib.licenses.bsd3;
}) {};
nanovgNeko = with haskellPackages; callPackage ({ nanovgNeko = with haskellPackages; callPackage ({
mkDerivation, base, bytestring, c2hs, containers, glew, hspec, mkDerivation, base, bytestring, c2hs, containers, glew, hspec,
inline-c, libGL, libGLU, QuickCheck, text, vector, pkgconfig }: inline-c, libGL, libGLU, QuickCheck, text, vector, pkgconfig }:
@ -68,7 +89,7 @@ let
affectionNeko = with haskellPackages; callPackage ({ mkDerivation affectionNeko = with haskellPackages; callPackage ({ mkDerivation
, base, bytestring, clock, containers, glib, linear, monad-loops, monad-parallel , base, bytestring, clock, containers, glib, linear, monad-loops, monad-parallel
, mtl, OpenGL, sdl2, stdenv, stm, text, uuid, vector }: , mtl, OpenGL, stdenv, stm, text, uuid, vector }:
mkDerivation { mkDerivation {
pname = "affection"; pname = "affection";
version = "0.0.0.9"; version = "0.0.0.9";
@ -84,7 +105,7 @@ let
isLibrary = true; isLibrary = true;
libraryHaskellDepends = [ libraryHaskellDepends = [
base bytestring clock containers glib linear monad-loops base bytestring clock containers glib linear monad-loops
monad-parallel mtl OpenGL sdl2 stm text uuid vector monad-parallel mtl OpenGL sdl2Nek0 stm text uuid vector
]; ];
librarySystemDepends = [ ]; librarySystemDepends = [ ];
libraryToolDepends = [ ]; libraryToolDepends = [ ];
@ -112,7 +133,7 @@ let
}) {}; }) {};
f = { mkDerivation, astar, base, containers, linear f = { mkDerivation, astar, base, containers, linear
, matrix, OpenGL, random, sdl2, stdenv, stm, text, unordered-containers , matrix, OpenGL, random, stdenv, stm, text, unordered-containers
, vector, JuicyPixels, JuicyPixels-extra, bytestring , vector, JuicyPixels, JuicyPixels-extra, bytestring
}: }:
mkDerivation { mkDerivation {
@ -124,7 +145,7 @@ let
enableExecutableProfiling = true; enableExecutableProfiling = true;
executableHaskellDepends = [ executableHaskellDepends = [
affectionNeko astar base containers ecstasyNeko linear matrix nanovgNeko affectionNeko astar base containers ecstasyNeko linear matrix nanovgNeko
OpenGL random sdl2 stm text unordered-containers vector JuicyPixels OpenGL random sdl2Nek0 stm text unordered-containers vector JuicyPixels
JuicyPixels-extra bytestring agNek0 JuicyPixels-extra bytestring agNek0
]; ];
license = stdenv.lib.licenses.gpl3; license = stdenv.lib.licenses.gpl3;