From 4d2a3933a48611ae3d6216db4b43ebeeb1800324 Mon Sep 17 00:00:00 2001 From: Mateusz Kowalczyk Date: Sat, 27 Sep 2014 02:35:54 +0100 Subject: [PATCH] agda-prelude: new package --- .../libraries/agda/agda-prelude/default.nix | 23 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/libraries/agda/agda-prelude/default.nix diff --git a/pkgs/development/libraries/agda/agda-prelude/default.nix b/pkgs/development/libraries/agda/agda-prelude/default.nix new file mode 100644 index 000000000000..9b67c5dbb5bb --- /dev/null +++ b/pkgs/development/libraries/agda/agda-prelude/default.nix @@ -0,0 +1,23 @@ +{ stdenv, agda, fetchgit }: + +agda.mkDerivation (self: rec { + version = "d598f35d88596c5a63766a7188a0c0144e467c8c"; + name = "agda-prelude-${version}"; + + src = fetchgit { + url = "https://github.com/UlfNorell/agda-prelude.git"; + rev = version; + sha256 = "bdcffb675d0ad1bafa2b47f581b6a9b90347ae739b6218f89f365fda2cc4f8c8"; + }; + + topSourceDirectories = [ "src" ]; + everythingFile = "src/Prelude.agda"; + + meta = with stdenv.lib; { + homepage = "https://github.com/UlfNorell/agda-prelude"; + description = "Programming library for Agda"; + license = stdenv.lib.licenses.mit; + platforms = stdenv.lib.platforms.unix; + maintainers = with maintainers; [ fuuzetsu ]; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3606ec56755a..6be18fea575b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6789,6 +6789,8 @@ let inherit writeScriptBin; }; + agdaPrelude = callPackage ../development/libraries/agda/agda-prelude {}; + AgdaStdlib = callPackage ../development/compilers/agda/stdlib.nix { inherit (haskellPackages) ghc filemanip; };