24979c3495
The new version can read Cabal files via HTTP, and it can also determine the hash automatically. Hence, generating a build expression is now a matter of running: cabal2nix http://hackage.haskell.org/packages/archive/cabal2nix/1.7/cabal2nix.cabal svn path=/nixpkgs/trunk/; revision=28183
16 lines
489 B
Nix
16 lines
489 B
Nix
{cabal,HTTP}:
|
|
|
|
cabal.mkDerivation (self : {
|
|
pname = "cabal2nix";
|
|
version = "1.7";
|
|
sha256 = "1inb1rv11dphgvg72zyfmzkcmw7dac1jrc40s7frhvwjhrnr4syv";
|
|
propagatedBuildInputs = [HTTP];
|
|
meta = {
|
|
homepage = "http://github.com/peti/cabal2nix";
|
|
description = "Convert Cabal files into Nix build instructions";
|
|
license = self.stdenv.lib.licenses.bsd3;
|
|
platforms = self.stdenv.lib.platforms.haskellPlatforms;
|
|
maintainers = [ self.stdenv.lib.maintainers.simons ];
|
|
};
|
|
})
|