Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
1005 B
Nix
44 lines
1005 B
Nix
{
|
|
lib,
|
|
mkDerivation,
|
|
fetchFromGitHub,
|
|
ghc,
|
|
cabal-install,
|
|
}:
|
|
|
|
mkDerivation {
|
|
pname = "cubical-mini";
|
|
version = "0.5-unstable-2025-06-13";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "cubical-mini";
|
|
owner = "cmcmA20";
|
|
rev = "1776874d13d0b811e6eeb70d0e5a52b4d2a978d2";
|
|
hash = "sha256-UxWOS+uzP9aAaMdSueA2CAuzWkImGAoKxroarcgpk+w=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
ghc
|
|
cabal-install
|
|
];
|
|
|
|
# Makefile uses `cabal run` which tries to write its default config to $HOME and download package
|
|
# lists. We need to create an empty config file to make cabal work offline.
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
export HOME=$TMP
|
|
mkdir $HOME/.cabal
|
|
touch $HOME/.cabal/config
|
|
make
|
|
runHook postBuild
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/cmcmA20/cubical-mini";
|
|
description = "Nonstandard library for Cubical Agda";
|
|
license = lib.licenses.agpl3Only;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [ thelissimus ];
|
|
};
|
|
}
|