Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
use flake

# source an additional user-specific .envrc in ./.envrc-local
if [ -e .envrc-local ]; then
source .envrc-local
fi
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ logs/
MAlonzo
output
runtests

.direnv
27 changes: 27 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
description = "A standard library for use with the Agda compiler";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-26.05";
};

outputs = inputs: {
packages = builtins.mapAttrs (_: pkgs: {
default = pkgs.agdaPackages.mkDerivation {
pname = "standard-library";
version = "2.4.0";
src = ./.;

meta = with pkgs.lib; {
homepage = "https://wiki.portal.chalmers.se/agda/pmwiki.php?n=Libraries.StandardLibrary";
description = "A standard library for use with the Agda compiler";
license = licenses.mit;
platforms = platforms.unix;
# Maintainers for the upstream nixpkgs package, which code I just copied
maintainers = with maintainers; [ jwiegley mudri alexarice turion ];
};
};
}) inputs.nixpkgs.legacyPackages;

devShells = builtins.mapAttrs (_: pkgs: {
default = pkgs.mkShell { buildInputs = [ pkgs.agda ]; };
}) inputs.nixpkgs.legacyPackages;
};
}
Loading