-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
57 additions
and
34 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,2 @@ | ||
{ haskellPackages ? (import <nixpkgs> {}).haskellPackages }: | ||
|
||
haskellPackages.cabal.mkDerivation (self: rec { | ||
pname = "liblastfm"; | ||
version = "0.5.1"; | ||
src = builtins.filterSource (_: type: type != "unknown") ./.; | ||
buildDepends = with haskellPackages; [ | ||
aeson cereal cryptoApi httpClient httpClientTls networkUri | ||
profunctors pureMD5 semigroups text xmlConduit | ||
]; | ||
testDepends = with haskellPackages; buildDepends ++ [ | ||
hspec hspecExpectationsLens HUnit lens lensAeson xmlHtmlConduitLens | ||
]; | ||
meta = { | ||
description = "Lastfm API interface"; | ||
license = self.stdenv.lib.licenses.mit; | ||
platforms = self.ghc.meta.platforms; | ||
}; | ||
}) | ||
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc7101" }: | ||
nixpkgs.pkgs.haskell.packages.${compiler}.callPackage ./liblastfm.nix {} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ mkDerivation, aeson, base, bytestring, cereal, containers | ||
, crypto-api, hspec, hspec-expectations-lens, http-client | ||
, http-client-tls, HUnit, lens, lens-aeson, network-uri | ||
, profunctors, pureMD5, semigroups, stdenv, text, xml-conduit | ||
, xml-html-conduit-lens | ||
}: | ||
mkDerivation { | ||
pname = "liblastfm"; | ||
version = "0.5.1"; | ||
src = ./.; | ||
buildDepends = [ | ||
aeson base bytestring cereal containers crypto-api http-client | ||
http-client-tls network-uri profunctors pureMD5 semigroups text | ||
xml-conduit | ||
]; | ||
testDepends = [ | ||
aeson base bytestring cereal containers crypto-api hspec | ||
hspec-expectations-lens http-client http-client-tls HUnit lens | ||
lens-aeson network-uri profunctors pureMD5 text xml-conduit | ||
xml-html-conduit-lens | ||
]; | ||
description = "Lastfm API interface"; | ||
license = stdenv.lib.licenses.mit; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc7101" }: let | ||
inherit (nixpkgs) pkgs; | ||
ghc = pkgs.haskell.packages.${compiler}.ghcWithPackages( ps: with ps; [ | ||
hdevtools doctest | ||
]); | ||
cabal-install = pkgs.haskell.packages.${compiler}.cabal-install; | ||
pkg = (import ./default.nix { inherit nixpkgs compiler; }); | ||
in | ||
pkgs.stdenv.mkDerivation rec { | ||
name = pkg.pname; | ||
buildInputs = [ ghc cabal-install ] ++ pkg.env.buildInputs; | ||
shellHook = '' | ||
${pkg.env.shellHook} | ||
export IN_WHICH_NIX_SHELL=${name} | ||
cabal configure --package-db=$NIX_GHC_LIBDIR/package.conf.d | ||
''; | ||
} |
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
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
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