nixpkgs/pkgs/development/libraries/haskell/liblastfm/default.nix

21 lines
569 B
Nix
Raw Normal View History

{ cabal, aeson, attoparsec, curl, mtl, pureMD5, urlencoded
, utf8String, xml
}:
2012-09-05 20:38:07 +02:00
cabal.mkDerivation (self: {
pname = "liblastfm";
version = "0.0.3.7";
sha256 = "004mi6515gd6vhk7fjd63rwwnf3micm3z1kwcn1f73hi70p27ma0";
2012-09-05 20:38:07 +02:00
buildDepends = [
aeson attoparsec curl mtl pureMD5 urlencoded utf8String xml
2012-09-05 20:38:07 +02:00
];
patchPhase = ''
sed -i -e 's|curl == .*,|curl,|' -e 's|urlencoded .*,|urlencoded,|' liblastfm.cabal
'';
2012-09-05 20:38:07 +02:00
meta = {
description = "Wrapper to Lastfm API";
license = self.stdenv.lib.licenses.mit;
platforms = self.ghc.meta.platforms;
};
})