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
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:
26
pkgs/gftest/default.nix
Normal file
26
pkgs/gftest/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ gf-core
|
||||
, breakpointHook
|
||||
, fetchFromGitHub
|
||||
, compiler ? "ghc98"
|
||||
, haskell
|
||||
, pgf2-haskell
|
||||
, gf-pgf
|
||||
}:
|
||||
|
||||
let
|
||||
src = fetchFromGitHub {
|
||||
owner = "GrammaticalFramework";
|
||||
repo = "gftest";
|
||||
rev = "ef7c99143d84a29fb28bbc464f661566d44a6130";
|
||||
hash = "sha256-t/LaG5+bdv7f0URcn/aFx6nUIvxSSEbpWeZS92/Gbog=";
|
||||
};
|
||||
hpkgs = haskell.packages.${compiler}.extend (final: prev: {
|
||||
# PGF2, the Haskell bindings to the C library.
|
||||
pgf2 = pgf2-haskell.override { inherit compiler; };
|
||||
});
|
||||
pkg = hpkgs.callCabal2nix "gftest" src {};
|
||||
in pkg.overrideAttrs (final: prev: {
|
||||
nativeBuildInputs = (prev.nativeBuildInputs or []) ++ [
|
||||
breakpointHook
|
||||
];
|
||||
})
|
||||
Reference in New Issue
Block a user