gftest: init
Some checks failed
Build and populate cache / tests (sydpkgs, nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixpkgs-unstable.tar.gz, sydpkgs) (push) Has been cancelled

This commit is contained in:
2026-02-15 21:11:04 -07:00
parent d3252333eb
commit e190dae46b
5 changed files with 83 additions and 17 deletions

View File

@@ -2,31 +2,28 @@
, haskellPackages
, stdenv
, fetchFromGitHub
, autoreconfHook
, gf-pgf
, applyPatches
}:
let
version = "3.12";
src = fetchFromGitHub {
owner = "GrammaticalFramework";
repo = "gf-core";
rev = "release-${version}";
hash = "sha256-9sB8tt2eOJT43kv2eaUYRQCzyBZOp6HvJdgGJQgiqks=";
src = applyPatches rec {
src = fetchFromGitHub {
owner = "GrammaticalFramework";
repo = "gf-core";
rev = "release-${version}";
hash = "sha256-9sB8tt2eOJT43kv2eaUYRQCzyBZOp6HvJdgGJQgiqks=";
};
patches = [
"${src}/nix/expose-all.patch"
"${src}/nix/revert-new-cabal-madness.patch"
./fix-cabal-syntax-error.patch
];
};
pkg = haskellPackages.callCabal2nixWithOptions "gf" src "--flag=-server" {};
gf-pgf = stdenv.mkDerivation {
pname = "gf-pgf";
version = "0.0.1";
src = "${src}/src/runtime/c";
nativeBuildInputs = [ autoreconfHook ];
};
in haskell.lib.overrideCabal pkg (prev: {
patches = [
"${src}/nix/expose-all.patch"
"${src}/nix/revert-new-cabal-madness.patch"
];
jailbreak = true;
configureFlags = [ "-f" "c-runtime" ];
librarySystemDepends = [ gf-pgf ];
passthru = { inherit gf-pgf; };
})