diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/agda')
7 files changed, 198 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/agda/agda-categories/default.nix b/nixpkgs/pkgs/development/libraries/agda/agda-categories/default.nix new file mode 100644 index 000000000000..fb6cc7279671 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/agda/agda-categories/default.nix @@ -0,0 +1,23 @@ +{ lib, mkDerivation, fetchFromGitHub, standard-library }: + +mkDerivation rec { + version = "0.1.4"; + pname = "agda-categories"; + + src = fetchFromGitHub { + owner = "agda"; + repo = "agda-categories"; + rev = "v${version}"; + sha256 = "1bcvmxcnl1ig38fxqkx8ydidhxq6a0kn2k9waf0lygh4ap928sgk"; + }; + + buildInputs = [ standard-library ]; + + meta = with lib; { + inherit (src.meta) homepage; + description = "A new Categories library"; + license = licenses.bsd3; + platforms = platforms.unix; + maintainers = with maintainers; [ alexarice turion ]; + }; +} diff --git a/nixpkgs/pkgs/development/libraries/agda/agda-prelude/default.nix b/nixpkgs/pkgs/development/libraries/agda/agda-prelude/default.nix new file mode 100644 index 000000000000..79bb783cc9ff --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/agda/agda-prelude/default.nix @@ -0,0 +1,28 @@ +{ lib, stdenv, mkDerivation, fetchFromGitHub }: + +mkDerivation rec { + version = "compat-2.6.1"; + pname = "agda-prelude"; + + src = fetchFromGitHub { + owner = "UlfNorell"; + repo = "agda-prelude"; + rev = version; + sha256 = "128rbhd32qlq2nq3wgqni4ih58zzwvs9pkn9j8236ycxxp6x81sl"; + }; + + preConfigure = '' + cd test + make everything + mv Everything.agda .. + cd .. + ''; + + meta = with lib; { + homepage = "https://github.com/UlfNorell/agda-prelude"; + description = "Programming library for Agda"; + license = lib.licenses.mit; + platforms = lib.platforms.unix; + maintainers = with maintainers; [ mudri alexarice turion ]; + }; +} diff --git a/nixpkgs/pkgs/development/libraries/agda/cubical/default.nix b/nixpkgs/pkgs/development/libraries/agda/cubical/default.nix new file mode 100644 index 000000000000..241caf16d679 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/agda/cubical/default.nix @@ -0,0 +1,33 @@ +{ lib, mkDerivation, fetchFromGitHub, ghc, glibcLocales }: + +mkDerivation rec { + + # Version 0.2 is meant to be used with the Agda 2.6.1 compiler. + pname = "cubical"; + version = "0.2"; + + src = fetchFromGitHub { + repo = pname; + owner = "agda"; + rev = "v${version}"; + sha256 = "07qlp2f189jvzbn3aqvpqk2zxpkmkxhhkjsn62iq436kxqj3z6c2"; + }; + + LC_ALL = "en_US.UTF-8"; + + # The cubical library has several `Everything.agda` files, which are + # compiled through the make file they provide. + nativeBuildInputs = [ ghc glibcLocales ]; + buildPhase = '' + make + ''; + + meta = with lib; { + description = + "A cubical type theory library for use with the Agda compiler"; + homepage = src.meta.homepage; + license = licenses.mit; + platforms = platforms.unix; + maintainers = with maintainers; [ alexarice ryanorendorff ]; + }; +} diff --git a/nixpkgs/pkgs/development/libraries/agda/functional-linear-algebra/default.nix b/nixpkgs/pkgs/development/libraries/agda/functional-linear-algebra/default.nix new file mode 100644 index 000000000000..7ec892bfe023 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/agda/functional-linear-algebra/default.nix @@ -0,0 +1,26 @@ +{ fetchFromGitHub, lib, stdenv, mkDerivation, standard-library }: + +mkDerivation rec { + version = "0.1"; + pname = "functional-linear-algebra"; + + buildInputs = [ standard-library ]; + + src = fetchFromGitHub { + repo = "functional-linear-algebra"; + owner = "ryanorendorff"; + rev = "v${version}"; + sha256 = "09ri3jmgp9jjwi1mzv4c3w6rvcmyx6spa2qxpwlcn0f4bmfva6wm"; + }; + + meta = with lib; { + homepage = "https://github.com/ryanorendorff/functional-linear-algebra"; + description = '' + Formalizing linear algebra in Agda by representing matrices as functions + from one vector space to another. + ''; + license = licenses.bsd3; + platforms = platforms.unix; + maintainers = with maintainers; [ ryanorendorff ]; + }; +} diff --git a/nixpkgs/pkgs/development/libraries/agda/generic/default.nix b/nixpkgs/pkgs/development/libraries/agda/generic/default.nix new file mode 100644 index 000000000000..08a1d8e12e03 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/agda/generic/default.nix @@ -0,0 +1,31 @@ +{ lib, mkDerivation, fetchFromGitHub, standard-library }: + +mkDerivation rec { + pname = "generic"; + version = "0.1.0.1"; + + src = fetchFromGitHub { + repo = "Generic"; + owner = "effectfully"; + rev = "v${version}"; + sha256 = "07l44yzx1jly20kmkmkjk8q493bn6x7i3xxpz6mhadkqlxyhmc8s"; + }; + + buildInputs = [ + standard-library + ]; + + preBuild = '' + echo "module Everything where" > Everything.agda + find src -name '*.agda' | sed -e 's/src\///;s/\//./g;s/\.agda$//;s/^/import /' >> Everything.agda + ''; + + meta = with lib; { + description = + "A library for doing generic programming in Agda"; + homepage = src.meta.homepage; + license = licenses.mit; + platforms = platforms.unix; + maintainers = with maintainers; [ alexarice turion ]; + }; +} diff --git a/nixpkgs/pkgs/development/libraries/agda/iowa-stdlib/default.nix b/nixpkgs/pkgs/development/libraries/agda/iowa-stdlib/default.nix new file mode 100644 index 000000000000..2ebb3f66ed08 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/agda/iowa-stdlib/default.nix @@ -0,0 +1,31 @@ +{ lib, stdenv, mkDerivation, fetchFromGitHub }: + +mkDerivation (rec { + version = "1.5.0"; + pname = "iowa-stdlib"; + + src = fetchFromGitHub { + owner = "cedille"; + repo = "ial"; + rev = "v${version}"; + sha256 = "0dlis6v6nzbscf713cmwlx8h9n2gxghci8y21qak3hp18gkxdp0g"; + }; + + libraryFile = ""; + libraryName = "IAL-1.3"; + + buildPhase = '' + patchShebangs find-deps.sh + make + ''; + + meta = { + homepage = "https://github.com/cedille/ial"; + description = "Agda standard library developed at Iowa"; + license = lib.licenses.free; + platforms = lib.platforms.unix; + # broken since Agda 2.6.1 + broken = true; + maintainers = with lib.maintainers; [ alexarice turion ]; + }; +}) diff --git a/nixpkgs/pkgs/development/libraries/agda/standard-library/default.nix b/nixpkgs/pkgs/development/libraries/agda/standard-library/default.nix new file mode 100644 index 000000000000..1d8dc03bbde9 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/agda/standard-library/default.nix @@ -0,0 +1,26 @@ +{ lib, stdenv, mkDerivation, fetchFromGitHub, ghcWithPackages }: + +mkDerivation rec { + pname = "standard-library"; + version = "1.4"; + + src = fetchFromGitHub { + repo = "agda-stdlib"; + owner = "agda"; + rev = "v${version}"; + sha256 = "1asjbisb7pfkgzqy7gf9b23z63bba8l8p1wqfd6ff5ddgqwj3dhp"; + }; + + nativeBuildInputs = [ (ghcWithPackages (self : [ self.filemanip ])) ]; + preConfigure = '' + runhaskell GenerateEverything.hs + ''; + + meta = with lib; { + homepage = "https://wiki.portal.chalmers.se/agda/pmwiki.php?n=Libraries.StandardLibrary"; + description = "A standard library for use with the Agda compiler"; + license = lib.licenses.mit; + platforms = lib.platforms.unix; + maintainers = with maintainers; [ jwiegley mudri alexarice turion ]; + }; +} |