haskell-twitter-conduit: use new editedCabalFile feature

This commit is contained in:
Peter Simons 2014-11-25 14:36:25 +01:00
parent c7d3f60217
commit 232e90378f

View File

@ -7,16 +7,11 @@
, transformersBase, twitterTypes, twitterTypesLens, fetchurl , transformersBase, twitterTypes, twitterTypesLens, fetchurl
}: }:
let
editedCabalFile = fetchurl {
url = "http://hackage.haskell.org/package/twitter-conduit-0.1.0/twitter-conduit.cabal";
sha256 = "06z8dwvc17xhzpvb7cm0j6v63r5f3xirj36rr86bds3rw1zbnd0z";
};
in
cabal.mkDerivation (self: { cabal.mkDerivation (self: {
pname = "twitter-conduit"; pname = "twitter-conduit";
version = "0.1.0"; version = "0.1.0";
sha256 = "1cymgp3wlswxn5qfdr442cqq2ak48b5w1zcsr67n2g5p1izadwji"; sha256 = "1cymgp3wlswxn5qfdr442cqq2ak48b5w1zcsr67n2g5p1izadwji";
editedCabalFile = "06z8dwvc17xhzpvb7cm0j6v63r5f3xirj36rr86bds3rw1zbnd0z";
isLibrary = true; isLibrary = true;
isExecutable = true; isExecutable = true;
buildDepends = [ buildDepends = [
@ -31,7 +26,6 @@ cabal.mkDerivation (self: {
resourcet text time transformers transformersBase twitterTypes resourcet text time transformers transformersBase twitterTypes
twitterTypesLens twitterTypesLens
]; ];
preConfigure = "cp ${editedCabalFile} twitter-conduit.cabal";
meta = { meta = {
homepage = "https://github.com/himura/twitter-conduit"; homepage = "https://github.com/himura/twitter-conduit";
description = "Twitter API package with conduit interface and Streaming API support"; description = "Twitter API package with conduit interface and Streaming API support";