Created
November 15, 2014 01:45
-
-
Save matejc/4430d66f2e5fc366084b to your computer and use it in GitHub Desktop.
haskell packages installation example
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
nix-env -iA yesod -f packages.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
let | |
pkgs = import <nixpkgs> {}; | |
in { | |
yesod = pkgs.haskellPackages.callPackage ./yesod.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
# This file was auto-generated by cabal2nix. Please do NOT edit manually! | |
{ cabal, aeson, blazeHtml, blazeMarkup, conduitExtra, dataDefault | |
, fastLogger, monadControl, monadLogger, safe, shakespeare | |
, streamingCommons, text, transformers, unorderedContainers, wai | |
, waiExtra, warp, yaml, yesodAuth, yesodCore, yesodForm | |
, yesodPersistent | |
}: | |
cabal.mkDerivation (self: { | |
pname = "yesod"; | |
version = "1.4.0"; | |
sha256 = "1h4jrzbf85malv3k1r4xxqp2y537naj1l284wazsrs2xikndwwn9"; | |
buildDepends = [ | |
aeson blazeHtml blazeMarkup conduitExtra dataDefault fastLogger | |
monadControl monadLogger safe shakespeare streamingCommons text | |
transformers unorderedContainers wai waiExtra warp yaml yesodAuth | |
yesodCore yesodForm yesodPersistent | |
]; | |
meta = { | |
homepage = "http://www.yesodweb.com/"; | |
description = "Creation of type-safe, RESTful web applications"; | |
license = self.stdenv.lib.licenses.mit; | |
platforms = self.ghc.meta.platforms; | |
}; | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment