aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/idris-modules/specdris.nix
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2017-11-06 18:18:59 +0000
committerMatthew Pickering <matthewtpickering@gmail.com>2018-02-07 19:25:50 +0000
commit947e7d80b41d9dea1739c23bf512f26d1c30703b (patch)
tree5f78026b58db3846acdec430863bf9a62fa9280a /pkgs/development/idris-modules/specdris.nix
parent8d55538f973813c8db45e9434bc7f742290a1fd0 (diff)
Refactor Idris packaging infrastructure
The main two changes are 1. Completely rewrite how with-packages works to remove use of envHooks 2. The package description is now an idris specific set rather than being a subset of the arguments to mkDerivation. This mirrors the way Haskell packages are treated.
Diffstat (limited to 'pkgs/development/idris-modules/specdris.nix')
-rw-r--r--pkgs/development/idris-modules/specdris.nix20
1 files changed, 5 insertions, 15 deletions
diff --git a/pkgs/development/idris-modules/specdris.nix b/pkgs/development/idris-modules/specdris.nix
index e6ca49aa489a..e20af3752371 100644
--- a/pkgs/development/idris-modules/specdris.nix
+++ b/pkgs/development/idris-modules/specdris.nix
@@ -11,7 +11,8 @@ let
date = "2017-11-11";
in
build-idris-package {
- name = "specdris-${date}";
+ name = "specdris";
+ version = date;
src = fetchgit {
url = "https://github.com/pheymann/specdris";
@@ -19,21 +20,10 @@ build-idris-package {
sha256 = "4813c4be1d4c3dd1dad35964b085f83cf9fb44b16824257c72b468d4bafd0e4f";
};
- propagatedBuildInputs = [ prelude base effects ];
+ idrisDeps = [ prelude base effects idris ];
- buildPhase = ''
- ${idris}/bin/idris --build specdris.ipkg
- '';
-
- checkPhase = ''
- cd test/
- ${idris}/bin/idris --testpkg test.ipkg
- cd ../
- '';
-
- installPhase = ''
- ${idris}/bin/idris --install specdris.ipkg --ibcsubdir $IBCSUBDIR
- '';
+ # The tests attribute is very strange as the tests are a different ipkg
+ doCheck = false;
meta = {
description = "A testing library for Idris";