diff options
Diffstat (limited to 'users/glittershark/xanthous')
-rw-r--r-- | users/glittershark/xanthous/default.nix | 6 | ||||
-rw-r--r-- | users/glittershark/xanthous/haskell-overlay.nix | 9 | ||||
-rw-r--r-- | users/glittershark/xanthous/pkg.nix | 5 |
3 files changed, 8 insertions, 12 deletions
diff --git a/users/glittershark/xanthous/default.nix b/users/glittershark/xanthous/default.nix index be8957f9f641..4af535a34def 100644 --- a/users/glittershark/xanthous/default.nix +++ b/users/glittershark/xanthous/default.nix @@ -1,11 +1,11 @@ { nixpkgs ? import ./nixpkgs.nix {} , pkgs ? nixpkgs.pkgs +, lib ? nixpkgs.lib , compiler ? "ghc865" , failOnWarnings ? false , ... }: let - inherit (nixpkgs) pkgs lib; inherit (lib) id; inherit (pkgs) fetchurl; all-hies = import (fetchTarball { @@ -16,6 +16,6 @@ let xanthous = (if failOnWarnings then pkgs.haskell.lib.failOnAllWarnings else id) ((pkgs.haskellPackages - .extend (import ./haskell-overlay.nix { inherit nixpkgs; }) - ).callPackage (import ./pkg.nix { inherit nixpkgs; }) {}); in + .extend (import ./haskell-overlay.nix { inherit pkgs; }) + ).callPackage (import ./pkg.nix { inherit pkgs; }) {}); in xanthous // { inherit hie; } diff --git a/users/glittershark/xanthous/haskell-overlay.nix b/users/glittershark/xanthous/haskell-overlay.nix index ad1200ef77f7..86a35149820d 100644 --- a/users/glittershark/xanthous/haskell-overlay.nix +++ b/users/glittershark/xanthous/haskell-overlay.nix @@ -1,6 +1,5 @@ -{ nixpkgs ? import ./nixpkgs.nix {} }: -let inherit (nixpkgs) pkgs; -in self: super: with pkgs.haskell.lib; rec { +{ pkgs ? import ./nixpkgs.nix {} }: +self: super: with pkgs.haskell.lib; rec { generic-arbitrary = appendPatch super.generic-arbitrary [ ./build/generic-arbitrary-export-garbitrary.patch ]; @@ -22,7 +21,7 @@ in self: super: with pkgs.haskell.lib; rec { vinyl = overrideSrc (markUnbroken super.vinyl) rec { - src = nixpkgs.fetchzip { + src = pkgs.fetchzip { url = "mirror://hackage/vinyl-${version}/vinyl-${version}.tar.gz"; sha256 = "190ffrmm76fh8fi9afkcda2vldf89y7dxj10434h28mbpq55kgsx"; }; @@ -35,7 +34,7 @@ in self: super: with pkgs.haskell.lib; rec { ghc-prof-flamegraph = overrideCabal super.ghc-prof-flamegraph (oldAttrs: rec { version = "0.2.0.0"; - src = nixpkgs.fetchFromGitHub { + src = pkgs.fetchFromGitHub { owner = "fpco"; repo = "ghc-prof-flamegraph"; rev = "8edd3b4806adeb25a4d55bed51c3afcc8e7a8e14"; diff --git a/users/glittershark/xanthous/pkg.nix b/users/glittershark/xanthous/pkg.nix index dcf508fa5485..91de68ea3216 100644 --- a/users/glittershark/xanthous/pkg.nix +++ b/users/glittershark/xanthous/pkg.nix @@ -1,9 +1,6 @@ -{ nixpkgs ? import ./nixpkgs.nix {} -, -}: +{ pkgs ? import ./nixpkgs.nix {} }: let inherit (builtins) filterSource elem not; - inherit (nixpkgs) pkgs; gitignoreSource = (import (pkgs.fetchFromGitHub { owner = "hercules-ci"; repo = "gitignore"; |