From 5a63f7be9375e3ab888e4232dd7ef72c2f1ffae1 Mon Sep 17 00:00:00 2001 From: Joris Date: Mon, 13 Nov 2017 23:56:40 +0100 Subject: Setup stylish-haskell --- stylish-haskell/default.nix | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 stylish-haskell/default.nix (limited to 'stylish-haskell/default.nix') diff --git a/stylish-haskell/default.nix b/stylish-haskell/default.nix new file mode 100644 index 0000000..bd73cf8 --- /dev/null +++ b/stylish-haskell/default.nix @@ -0,0 +1,44 @@ +{ HUnit, aeson, base, bytestring, containers, directory, fetchFromGitHub +, filepath, haskell-src-exts, mkDerivation, mtl, optparse-applicative, stdenv +, strict, stylish-haskell, syb, test-framework, test-framework-hunit, yaml +}: + +let regularDependencies = [ + aeson + base + bytestring + containers + directory + filepath + haskell-src-exts + mtl + syb + yaml + ]; +in mkDerivation { + pname = "stylish-haskell"; + version = "0.8.1.0"; + + src = fetchFromGitHub { + owner = "jaspervdj"; + repo = "stylish-haskell"; + rev = "dc3a73e82c19ff97a1544840dac8f7f4568b24bc"; + sha256 = "0kx9m3j9w2357ff5y651s9cdbjiyax9fksyf4rk8pzabc0dv6dpg"; + }; + + isLibrary = true; + isExecutable = true; + + libraryHaskellDepends = + regularDependencies; + + executableHaskellDepends = + regularDependencies ++ [ optparse-applicative strict stylish-haskell ]; + + testHaskellDepends = + regularDependencies ++ [ HUnit test-framework test-framework-hunit ]; + + homepage = "https://github.com/jaspervdj/stylish-haskell"; + description = "Simple Haskell code prettifier"; + license = stdenv.lib.licenses.bsd3; + } -- cgit v1.2.3