Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
language: nix

matrix:
fast_finish: true
include:
- env: GHCVER=ghc7102
- env: GHCVER=ghc7103
- env: GHCVER=ghc801
- env: GHCVER=ghc802
- env: GHCVER=ghc742
- env: GHCVER=ghc763
- env: GHCVER=ghc783
- env: GHCVER=ghc784
- env: GHCVER=ghcHEAD
allow_failures:
- env: GHCVER=ghc742
- env: GHCVER=ghc763
- env: GHCVER=ghc783
- env: GHCVER=ghc784
- env: GHCVER=ghcHEAD

before_install:
- nix-channel --list
- nix-channel --update

script:
- nix-build -A google-translate --argstr compiler $GHCVER

cache:
directories:
- /nix/store
15 changes: 0 additions & 15 deletions circle.yml

This file was deleted.

21 changes: 21 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{ compiler ? "ghc802", profiling ? false, haddock ? false }:
let
config = {
allowBroken = true;
packageOverrides = pkgs: {
haskell.packages.${compiler} = pkgs.haskell.packages.${compiler}.override {
overrides = self: super: rec {
mkDerivation = args: super.mkDerivation (args // {
# Only run tests on stripe-http-streams
doCheck = args.pname == "google-translate";
doHaddock = haddock;
enableLibraryProfiling = profiling;
});
google-translate = self.callPackage ./google-translate.nix { };
};
};
};
};
in with (import <nixpkgs> { inherit config; }).haskell.packages.${compiler}; {
inherit google-translate;
}
14 changes: 14 additions & 0 deletions google-translate.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{ mkDerivation, aeson, base, bytestring, http-api-data, http-client
, servant, servant-client, stdenv, text, transformers
}:
mkDerivation {
pname = "google-translate";
version = "0.3";
src = ./.;
libraryHaskellDepends = [
aeson base bytestring http-api-data http-client servant
servant-client text transformers
];
description = "Google Translate API bindings";
license = stdenv.lib.licenses.bsd3;
}