2023-10-28 12:34:15 +02:00
|
|
|
{ pkgs ? import <nixpkgs> { } }:
|
|
|
|
with pkgs;
|
|
|
|
mkShell {
|
|
|
|
buildInputs = [
|
|
|
|
(agda.withPackages [
|
2024-01-24 14:04:07 +01:00
|
|
|
(agdaPackages.standard-library.overrideAttrs (oldAttrs: {
|
|
|
|
version = "2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "agda-stdlib";
|
|
|
|
owner = "agda";
|
|
|
|
rev = "v2.0";
|
|
|
|
hash = "sha256-TjGvY3eqpF+DDwatT7A78flyPcTkcLHQ1xcg+MKgCoE=";
|
|
|
|
};
|
|
|
|
}))
|
2023-10-28 12:34:15 +02:00
|
|
|
(agdaPackages.agda-categories.overrideAttrs (oldAttrs : {
|
2024-01-24 14:04:07 +01:00
|
|
|
version = "0.2.0";
|
2023-10-28 12:34:15 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "agda-categories";
|
2024-01-24 14:04:07 +01:00
|
|
|
owner = "agda";
|
|
|
|
rev = "v0.2.0";
|
|
|
|
hash = "sha256-pGwR5nPDlBwL4NbFBAZr8ZtR66qdqTm+Cd3OePjbTys=";
|
2023-10-28 12:34:15 +02:00
|
|
|
};
|
2024-01-24 14:04:07 +01:00
|
|
|
|
|
|
|
# without this nix might use a wrong version of the stdlib to try and typecheck agda-categories
|
|
|
|
buildInputs = [
|
|
|
|
(agda.withPackages [
|
|
|
|
(agdaPackages.standard-library.overrideAttrs (oldAttrs: {
|
|
|
|
version = "2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "agda-stdlib";
|
|
|
|
owner = "agda";
|
|
|
|
rev = "v2.0";
|
|
|
|
hash = "sha256-TjGvY3eqpF+DDwatT7A78flyPcTkcLHQ1xcg+MKgCoE=";
|
|
|
|
};
|
|
|
|
}))
|
|
|
|
])
|
|
|
|
];
|
|
|
|
|
|
|
|
GHCRTS = "-M6G";
|
2023-10-28 12:34:15 +02:00
|
|
|
}))
|
|
|
|
])
|
|
|
|
];
|
|
|
|
|
|
|
|
shellHook = ''
|
|
|
|
# ...
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
|