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";
|
2024-01-29 18:02:50 +01:00
|
|
|
rev = "a1c797e935432702d25fd729802aeb155b423761";
|
|
|
|
hash = "sha256-p9rrQq3aFSG14sJ65aYDvAoPkTsa/UmdkkxD5suhClY="; # sha256-GQuQxzYSQxAIVSJ1vf0blRC0juoxAqD1AHW66H/6NSk=
|
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 = ''
|
|
|
|
# ...
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
|