gf: 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 20:18:47 -07:00
parent 233479ab27
commit 319dd9fc0a

32
pkgs/gf/default.nix Normal file
View File

@@ -0,0 +1,32 @@
{ haskell
, haskellPackages
, stdenv
, fetchFromGitHub
, autoreconfHook
}:
let
version = "3.12";
src = fetchFromGitHub {
owner = "GrammaticalFramework";
repo = "gf-core";
rev = "release-${version}";
hash = "sha256-9sB8tt2eOJT43kv2eaUYRQCzyBZOp6HvJdgGJQgiqks=";
};
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; };
})