From 24e418049a7696c5cadeda22b3728c104fdb30af Mon Sep 17 00:00:00 2001 From: kczulko Date: Sat, 27 Nov 2021 01:43:51 +0100 Subject: [PATCH] Attempt to fix bad file descriptor. --- users/kczulko/hls-tactics-plugin.nix | 30 +++++++++++++++++++++++++++ users/kczulko/implicit-hie-cradle.nix | 18 ++++++++++++++++ users/kczulko/user-profile.nix | 16 +++++++++++++- 3 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 users/kczulko/hls-tactics-plugin.nix create mode 100644 users/kczulko/implicit-hie-cradle.nix diff --git a/users/kczulko/hls-tactics-plugin.nix b/users/kczulko/hls-tactics-plugin.nix new file mode 100644 index 0000000..1285ec5 --- /dev/null +++ b/users/kczulko/hls-tactics-plugin.nix @@ -0,0 +1,30 @@ +{ mkDerivation, aeson, base, containers, deepseq, directory, extra + , filepath, fingertree, generic-lens, ghc, ghc-boot-th + , ghc-exactprint, ghc-source-gen, ghcide, hls-graph, hls-plugin-api + , hls-test-utils, hspec, hspec-discover, hspec-expectations + , hyphenation, lens, lsp, lsp-types, megaparsec, mtl + , parser-combinators, prettyprinter, QuickCheck, refinery, retrie + , syb, tasty-hspec, tasty-hunit, text, transformers, unagi-chan + , unordered-containers + }: + mkDerivation { + pname = "hls-tactics-plugin"; + version = "1.5.0.0"; + sha256 = "0bwjkj9canxr2njjica9nbl0lmlyqvyj6ybrx2xdk533rajxbnpf"; + libraryHaskellDepends = [ + aeson base containers deepseq directory extra filepath fingertree + generic-lens ghc ghc-boot-th ghc-exactprint ghc-source-gen ghcide + hls-graph hls-plugin-api hyphenation lens lsp megaparsec mtl + parser-combinators prettyprinter refinery retrie syb text + transformers unagi-chan unordered-containers + ]; + testHaskellDepends = [ + aeson base containers deepseq directory filepath ghc ghcide + hls-plugin-api hls-test-utils hspec hspec-expectations lens + lsp-types mtl QuickCheck tasty-hspec tasty-hunit text + ]; + testToolDepends = [ hspec-discover ]; + description = "Wingman plugin for Haskell Language Server"; + doCheck = false; + license = "fdsadf"; + } diff --git a/users/kczulko/implicit-hie-cradle.nix b/users/kczulko/implicit-hie-cradle.nix new file mode 100644 index 0000000..32660fc --- /dev/null +++ b/users/kczulko/implicit-hie-cradle.nix @@ -0,0 +1,18 @@ +{ mkDerivation, base, base16-bytestring, bytestring, containers +, directory, extra, filepath, hie-bios, hslogger, implicit-hie +, process, temporary, text, time, transformers, unix-compat +, unordered-containers, vector, yaml +}: +mkDerivation { + pname = "implicit-hie-cradle"; + version = "0.4.0.2"; + sha256 = "0mll3bp2z2nz7d1816nzq9i4hnpkcd9rq2zd4gnils79y8lnwap4"; + libraryHaskellDepends = [ + base base16-bytestring bytestring containers directory extra + filepath hie-bios hslogger implicit-hie process temporary text time + transformers unix-compat unordered-containers vector yaml + ]; + testHaskellDepends = [ base ]; + description = "Auto generate hie-bios cradles"; + license = "blablabla"; +} diff --git a/users/kczulko/user-profile.nix b/users/kczulko/user-profile.nix index 8fc5e8f..f265c51 100644 --- a/users/kczulko/user-profile.nix +++ b/users/kczulko/user-profile.nix @@ -1,9 +1,23 @@ {pkgs,home-manager,...}: let + hpOverlay = self: super: { + haskellPackages = super.haskellPackages.override { + overrides = haskellSelf: haskellSuper: { + + hls-tactics-plugin = haskellSuper.callPackage ./hls-tactics-plugin.nix {}; + + implicit-hie-cradle = haskellSuper.callPackage ./implicit-hie-cradle.nix {}; + }; + }; + }; + unstable = import ( fetchTarball https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz - ){ config = { allowUnfree = true; }; }; + ){ + config = { allowUnfree = true; }; + overlays = [ hpOverlay ]; + }; secrets = import ../../secrets.nix; customizations = import ./customizations/all.nix { inherit pkgs; };