Skip to content

Instantly share code, notes, and snippets.

@michaelpj
Created June 16, 2020 14:16
Show Gist options
  • Save michaelpj/9da58271bb0d695279e829f28622aabb to your computer and use it in GitHub Desktop.
Save michaelpj/9da58271bb0d695279e829f28622aabb to your computer and use it in GitHub Desktop.
Ormolu haskell.nix
{ 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