1 { pkgs ? import <nixpkgs> { overlays = []; } }:
5 stack = stdenv.mkDerivation rec {
6 name = "stack-${version}";
9 url = "https://github.com/commercialhaskell/stack/releases/download/v${version}/stack-${version}-linux-x86_64.tar.gz";
10 sha256 = "1gm2llfwhal5ds6s21066mpr0lg4090rbaicn671dsn7v5srqcp7";
12 nativeBuildInputs = [ autoPatchelfHook ];
23 cp -r stack-${version}-linux-x86_64/stack $out/bin
26 stylish-haskell = stdenv.mkDerivation rec {
27 name = "stylish-haskell-${version}";
29 nativeBuildInputs = [ autoPatchelfHook ];
32 url = "https://github.com/jaspervdj/stylish-haskell/releases/download/v${version}/stylish-haskell-v${version}-linux-x86_64.tar.gz";
33 sha256 = "1v7r2vm3q9xn9xdwmmx2b9yl0a9x0101mni1ipd2k3ph5x3pf3gm";
40 cp -r stylish-haskell-v${version}-linux-x86_64/stylish-haskell $out/bin
43 hlint = stdenv.mkDerivation rec {
44 name = "hlint-${version}";
46 nativeBuildInputs = [ autoPatchelfHook ];
47 buildInputs = [ gmp ncurses5 ];
49 url = "https://github.com/ndmitchell/hlint/releases/download/v${version}/hlint-${version}-x86_64-linux.tar.gz";
50 sha256 = "03ipgynd4vkcm89nzgzd10m6k4rr5fsnk93zgv7d7d9lhy6y7vhg";
57 cp -r hlint-${version}/* $out/bin/
62 inherit shellcheck git stack stylish-haskell hlint;