From 73b7bf67731cb95310af0429cc7982d03c84e8f1 Mon Sep 17 00:00:00 2001 From: David Virgilio Date: Sun, 16 Nov 2014 01:40:35 -0600 Subject: [PATCH] new package: clash-ghc --- .../compilers/clash-ghc/default.nix | 33 +++++++++++++++++++ pkgs/top-level/haskell-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/compilers/clash-ghc/default.nix diff --git a/pkgs/development/compilers/clash-ghc/default.nix b/pkgs/development/compilers/clash-ghc/default.nix new file mode 100644 index 000000000000..a7e87b78dc74 --- /dev/null +++ b/pkgs/development/compilers/clash-ghc/default.nix @@ -0,0 +1,33 @@ +# This file was auto-generated by cabal2nix. Please do NOT edit manually! + +{ cabal, bifunctors, clashLib, clashPrelude, filepath, ghcPaths +, hashable, haskeline, lens, makeWrapper, mtl, text, transformers, unbound +, unorderedContainers, thLift +}: + +cabal.mkDerivation (self: { + pname = "clash-ghc"; + version = "0.4"; + sha256 = "0pyv8snrmy7x9gv6xna5rd5chacrdvczcjs7854b80pifhag5c2g"; + isLibrary = false; + isExecutable = true; + buildDepends = [ + bifunctors clashLib clashPrelude filepath ghcPaths hashable + haskeline lens mtl text transformers unbound unorderedContainers + thLift + ]; + buildTools = [ makeWrapper ]; + postInstall = '' + echo ${clashPrelude} + wrapProgram $out/bin/clash \ + --add-flags "-package-db ${clashPrelude}/lib/ghc-${self.ghc.version}/package.conf.d/${clashPrelude.fname}.installedconf" \ + --add-flags "-package-db ${thLift}/lib/ghc-${self.ghc.version}/package.conf.d/${thLift.fname}.installedconf" \ + --add-flags "\$(${self.ghc.GHCGetPackages} ${self.ghc.version} \"\$(dirname \$0)\" \"-package-db\")" + ''; + meta = { + homepage = "http://christiaanb.github.io/clash2"; + description = "CAES Language for Synchronous Hardware"; + license = "unknown"; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 5080cca7f0b1..c4dfb83c741c 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -2957,6 +2957,8 @@ self : let callPackage = x : y : modifyPrio (newScope self x y); in arbtt = callPackage ../applications/misc/arbtt {}; + clashGhc = callPackage ../development/compilers/clash-ghc {}; + idris_plain = callPackage ../development/compilers/idris {}; idris = callPackage ../development/compilers/idris/wrapper.nix {};