mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
@@ -1,8 +1,8 @@
|
|||||||
{ mkDerivation, alex, array, base, bytestring, Cabal, cgi
|
{ mkDerivation, alex, array, base, bytestring, Cabal, cgi
|
||||||
, containers, directory, exceptions, filepath, happy, haskeline
|
, containers, directory, exceptions, filepath, happy, haskeline
|
||||||
, HTF, httpd-shed, HUnit, json, lifted-base, mtl, network
|
, HTF, httpd-shed, HUnit, json, mtl, network, network-uri
|
||||||
, network-uri, old-locale, parallel, pretty, process, random
|
, old-locale, parallel, pretty, process, random, stdenv, terminfo
|
||||||
, stdenv, terminfo, time, time-compat, unix, utf8-string
|
, time, time-compat, unix, utf8-string
|
||||||
}:
|
}:
|
||||||
mkDerivation {
|
mkDerivation {
|
||||||
pname = "gf";
|
pname = "gf";
|
||||||
@@ -18,7 +18,7 @@ mkDerivation {
|
|||||||
utf8-string
|
utf8-string
|
||||||
];
|
];
|
||||||
libraryToolDepends = [ alex happy ];
|
libraryToolDepends = [ alex happy ];
|
||||||
executableHaskellDepends = [ base containers lifted-base mtl ];
|
executableHaskellDepends = [ base ];
|
||||||
testHaskellDepends = [
|
testHaskellDepends = [
|
||||||
base Cabal directory filepath HTF HUnit process
|
base Cabal directory filepath HTF HUnit process
|
||||||
];
|
];
|
||||||
|
|||||||
20
gf.nix
20
gf.nix
@@ -1,3 +1,19 @@
|
|||||||
let pkgs = import <nixpkgs> {}; in rec {
|
let
|
||||||
gf = pkgs.haskellPackages.callPackage ./default.nix {};
|
# We import the package hierarchy from the NIX_PATH.
|
||||||
|
pkgs = import <nixpkgs> {};
|
||||||
|
|
||||||
|
#
|
||||||
|
# The `cgi` package has some out-of-date upper bounds.
|
||||||
|
# Instead of fixing that upstream, we can use the "jailbreak"
|
||||||
|
# function in Nix, which patches away the upper bounds.
|
||||||
|
#
|
||||||
|
# This isn't ideal, but it lets us build the dependency.
|
||||||
|
#
|
||||||
|
jailbreak = pkgs.haskell.lib.doJailbreak;
|
||||||
|
haskellPackages = pkgs.haskellPackages.extend (self: super: {
|
||||||
|
cgi = jailbreak super.cgi;
|
||||||
|
});
|
||||||
|
|
||||||
|
in {
|
||||||
|
gf = haskellPackages.callPackage (import ./default.nix) {};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user