Skip to content

Commit ca98082

Browse files
improve agda / cornelis support
1 parent 9563d4c commit ca98082

2 files changed

Lines changed: 7 additions & 23 deletions

File tree

src/language/agda.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub(crate) async fn create_agda_template(
4444

4545
println!(
4646
r"
47-
Template: Haskell
47+
Template: Agda
4848
Package Name: {package_name}
4949
Nixpkgs Version: {nixpkgs_version}
5050
"

template/agda/flake.nix

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,31 @@
22
description = "__package_name";
33

44
inputs = {
5-
nixpkgs.url = github:nixos/nixpkgs/nixpkgs-unstable;
6-
flake-utils.url = github:numtide/flake-utils;
7-
cornelis.url = github:isovector/cornelis;
8-
agda.url = github:agda/agda/8049b1d996e30ce6204bae2cd8043edff4a22625;
9-
agda-stdlib-source = {
10-
url = github:agda/agda-stdlib/c5f42e1fb86b964dfe2558e103f2f4f662e553b3;
11-
flake = false;
12-
};
5+
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
cornelis.url = "github:isovector/cornelis";
138
};
149

1510
outputs = {
1611
self,
12+
nixpkgs,
1713
flake-utils,
18-
agda,
19-
agda-stdlib-source,
2014
cornelis,
21-
2215
}:
2316
with flake-utils.lib;
2417
eachDefaultSystem (system:
25-
2618
let
2719
pkgs = import nixpkgs {
2820
inherit system;
29-
overlays = [ agda.overlay ];
3021
};
31-
cornelis = cornelis.packages.${system}.cornelis;
32-
agda = pkgs.agda.withPackages (p: [
33-
(p.standard-library.overrideAttrs (oldAttrs: {
34-
version = "nightly";
35-
src = agda-stdlib-source;
36-
}))
37-
]);
3822
in
3923
{
4024
# nix develop
4125
devShell =
4226
pkgs.mkShell {
4327
buildInputs = [
44-
cornelis
45-
agda
28+
cornelis.packages.${system}.cornelis
29+
cornelis.packages.${system}.agda
4630
];
4731
};
4832
});

0 commit comments

Comments
 (0)