Created
January 6, 2014 17:45
-
-
Save bennofs/8286516 to your computer and use it in GitHub Desktop.
This file contains 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
{ cabal, Cabal, doctest, filepath, hackageDb, HTTP, mtl, regexPosix | |
}: | |
cabal.mkDerivation (self: { | |
pname = "cabal2nix"; | |
version = "1.58"; | |
src = "./."; | |
isLibrary = false; | |
isExecutable = true; | |
buildDepends = [ Cabal filepath hackageDb HTTP mtl regexPosix ]; | |
testDepends = [ doctest ]; | |
doCheck = self.stdenv.lib.versionOlder "7.6" self.ghc.version; | |
meta = { | |
homepage = "http://github.com/NixOS/cabal2nix"; | |
description = "Convert Cabal files into Nix build instructions"; | |
license = self.stdenv.lib.licenses.bsd3; | |
platforms = self.ghc.meta.platforms; | |
}; | |
}) |
This file contains 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 pkgs.haskellPackages.callPackage (import ./cabal2nix.nix) {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment