2020-06-15 17:54:01 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
2020-07-06 16:32:41 +02:00
|
|
|
agda-categories = with pkgs.agdaPackages; mkDerivation rec {
|
2020-06-15 17:54:01 +02:00
|
|
|
pname = "agda-categories";
|
|
|
|
version = "2128fab";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "agda";
|
|
|
|
repo = "agda-categories";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "08mc20qaz9vp5rhi60rh8wvjkg5aby3bgwwdhfnxha1663qf1q24";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ standard-library ];
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../lib/cloneRepo.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
home.packages = with pkgs; [
|
2020-07-06 16:32:41 +02:00
|
|
|
(pkgs.agda.withPackages
|
2020-06-15 17:54:01 +02:00
|
|
|
(p: with p; [
|
|
|
|
p.standard-library
|
|
|
|
|
|
|
|
]))
|
|
|
|
];
|
|
|
|
|
2024-03-31 20:11:01 +02:00
|
|
|
aspen.impure.clonedRepos = {
|
2020-06-15 17:54:01 +02:00
|
|
|
agda-stdlib = {
|
|
|
|
github = "agda/agda-stdlib";
|
|
|
|
path = "code/agda-stdlib";
|
|
|
|
};
|
|
|
|
|
|
|
|
agda-categories = {
|
|
|
|
github = "agda/agda-categories";
|
|
|
|
path = "code/agda-categories";
|
|
|
|
};
|
|
|
|
|
|
|
|
categories-examples = {
|
|
|
|
github = "agda/categories-examples";
|
|
|
|
path = "code/categories-examples";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
home.file.".agda/defaults".text = ''
|
|
|
|
standard-library
|
|
|
|
'';
|
|
|
|
|
|
|
|
home.file.".agda/libraries".text = ''
|
2024-03-31 20:11:01 +02:00
|
|
|
/home/aspen/code/agda-stdlib/standard-library.agda-lib
|
|
|
|
/home/aspen/code/agda-categories/agda-categories.agda-lib
|
2020-06-15 17:54:01 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
}
|