Created
June 16, 2020 14:16
-
-
Save michaelpj/9da58271bb0d695279e829f28622aabb to your computer and use it in GitHub Desktop.
Ormolu haskell.nix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import ./nixpkgs.nix | |
, haskellCompiler ? "ghc865" | |
}: | |
let | |
haskellNix = import (builtins.fetchTarball | |
( "https://github.com/input-output-hk/haskell.nix/archive/" | |
+ "59cf05606e7efbbc4741ae28fd8cc610cec94eb8.tar.gz" | |
)) {}; | |
nixpkgsSrc = haskellNix.sources.nixpkgs-default; | |
nixpkgsArgs = haskellNix.nixpkgsArgs; | |
pkgs = import nixpkgsSrc nixpkgsArgs; | |
haskell-nix = pkgs.haskell-nix; | |
hackage-package = haskell-nix.hackage-package; | |
in { | |
ormolu = (hackage-package { name = "ormolu"; version = "0.1.0.0"; }).components.exes.ormolu ; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment