Skip to content

Instantly share code, notes, and snippets.

@bennofs
Created January 6, 2014 17:45
Show Gist options
  • Save bennofs/8286516 to your computer and use it in GitHub Desktop.
Save bennofs/8286516 to your computer and use it in GitHub Desktop.
{ 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;
};
})
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