about summary refs log tree commit diff
path: root/users/glittershark/xanthous
diff options
context:
space:
mode:
Diffstat (limited to 'users/glittershark/xanthous')
-rw-r--r--users/glittershark/xanthous/hie.nix16
-rwxr-xr-xusers/glittershark/xanthous/hie.sh6
-rw-r--r--users/glittershark/xanthous/hie.yaml10
-rw-r--r--users/glittershark/xanthous/package.yaml1
-rw-r--r--users/glittershark/xanthous/shell.nix6
5 files changed, 13 insertions, 26 deletions
diff --git a/users/glittershark/xanthous/hie.nix b/users/glittershark/xanthous/hie.nix
deleted file mode 100644
index c8b1d2b5f538..000000000000
--- a/users/glittershark/xanthous/hie.nix
+++ /dev/null
@@ -1,16 +0,0 @@
-{ pkgs ? (import ../../../. {}).third_party }:
-
-let
-  all-hies = (fetchTarball {
-    url = "https://github.com/infinisil/all-hies/archive/eff5d9a5e1a84150014095494331cf63e59923af.tar.gz";
-    sha256 = "19bws9fyjhgiikig86cri05fxz1wrz60n69zrigq5wzbyn4hwv9h";
-  });
-
-  sources = import "${all-hies}/sources.nix";
-  build = import "${all-hies}/build.nix";
-
-in (build {
-  glibcName = pkgs.glibc.name;
-  inherit sources;
-  ghcVersion = "8.8.3";
-}).combined
diff --git a/users/glittershark/xanthous/hie.sh b/users/glittershark/xanthous/hie.sh
deleted file mode 100755
index 223a432203b8..000000000000
--- a/users/glittershark/xanthous/hie.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/usr/bin/env bash
-set -euo pipefail
-
-cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1
-
-exec nix-shell --run "$(nix-build -o dist/bin/hie hie.nix)/bin/hie $*"
diff --git a/users/glittershark/xanthous/hie.yaml b/users/glittershark/xanthous/hie.yaml
new file mode 100644
index 000000000000..49f8ec1fbb3d
--- /dev/null
+++ b/users/glittershark/xanthous/hie.yaml
@@ -0,0 +1,10 @@
+cradle:
+  cabal:
+    - path: './src'
+      component: 'lib:xanthous'
+    - path: './test'
+      component: 'test:test'
+    - path: './src'
+      component: 'exe:xanthous'
+    - path: './bench'
+      component: 'bench:benchmark'
diff --git a/users/glittershark/xanthous/package.yaml b/users/glittershark/xanthous/package.yaml
index 84f84b6b0ed8..e954374f88d9 100644
--- a/users/glittershark/xanthous/package.yaml
+++ b/users/glittershark/xanthous/package.yaml
@@ -31,6 +31,7 @@ dependencies:
 - comonad-extras
 - constraints
 - containers
+- criterion
 - data-default
 - deepseq
 - directory
diff --git a/users/glittershark/xanthous/shell.nix b/users/glittershark/xanthous/shell.nix
index 491f0779f808..dd747b740c74 100644
--- a/users/glittershark/xanthous/shell.nix
+++ b/users/glittershark/xanthous/shell.nix
@@ -5,13 +5,11 @@
 })).shellFor {
   packages = p: [p.xanthous];
   withHoogle = true;
+  doBenchmark = true;
   buildInputs = with pkgs.haskellPackages; [
     cabal-install
     ghc-prof-flamegraph
     hp2pretty
-  ];
-
-  nativeBuildInputs = [
-    (import ./hie.nix { inherit pkgs; })
+    pkgs.haskell-language-server.ghc883
   ];
 }