Drop nix support (#147)

This commit is contained in:
Dmitrii Kovanikov 2020-02-19 08:51:13 +00:00 committed by GitHub
parent 39ac333873
commit dc1dd199f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 47 additions and 35 deletions

43
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,43 @@
name: CI
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
pull_request:
jobs:
build:
name: ghc ${{ matrix.ghc }}
runs-on: ubuntu-16.04
strategy:
matrix:
ghc: ["8.8.2"]
cabal: ["3.0"]
steps:
- uses: actions/checkout@v2
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master'
- uses: actions/setup-haskell@v1
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- uses: actions/cache@v1
name: Cache ~/.cabal/store
with:
path: ~/.cabal/store
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal
- name: Build
run: |
cabal update
cabal build --enable-tests --enable-benchmarks
- name: Test
run: |
cabal test --enable-tests

View File

@ -1,10 +1,14 @@
# Hit On
![hit-on logo](https://user-images.githubusercontent.com/4276606/53816638-d86e4a00-3f9e-11e9-83ab-74032363292f.png)
[![GitHub CI](https://github.com/kowainik/hit-on/workflows/CI/badge.svg)](https://github.com/kowainik/hit-on/actions)
[![Build status](https://img.shields.io/travis/kowainik/hit-on.svg?logo=travis)](https://travis-ci.org/kowainik/hit-on)
[![Hackage](https://img.shields.io/hackage/v/hit-on.svg?logo=haskell)](https://hackage.haskell.org/package/hit-on)
[![Stackage Lts](http://stackage.org/package/hit-on/badge/lts)](http://stackage.org/lts/package/hit-on)
[![Stackage Nightly](http://stackage.org/package/hit-on/badge/nightly)](http://stackage.org/nightly/package/hit-on)
[![MPL-2.0 license](https://img.shields.io/badge/license-MPL--2.0-blue.svg)](LICENSE)
**Kowainik Git Workflow Helper Tool.**
@ -84,10 +88,6 @@ You need to follow these steps:
```shell
stack install hit-on
```
* [Nix](https://nixos.org/nix/)
```shell
nix-env -f . -i
```
4. Make sure that `hit` is installed:

View File

@ -1,31 +0,0 @@
{ # The git revision here corresponds to the nixpkgs-unstable channel, which at
# the time of this writing has GHC 8.6.5 as the default compiler (matching the
# one used by stack.yaml). Use https://howoldis.herokuapp.com/ to determine
# the current rev.
pkgs ? import (builtins.fetchTarball "https://github.com/nixos/nixpkgs/archive/002b853782e.tar.gz") {}
# Which GHC compiler to use.
# To determine the list of compilers available run:
# nix-env -f "<nixpkgs>" -qaP -A haskell.compiler
, compiler ? "default"
}:
let
haskellPackages =
if compiler == "default"
then pkgs.haskellPackages
else pkgs.haskell.packages.${compiler};
in
haskellPackages.developPackage {
# The path to our cabal project's root directory
root = ./.;
# Haskell packages to override
source-overrides = {
github = builtins.fetchTarball "https://github.com/phadej/github/archive/cdae698f50f9e6dc1b58d2181672294e2b11dfb3.tar.gz";
relude = builtins.fetchTarball "https://github.com/kowainik/relude/archive/55968311244690f5cc8b4484a37a63d988ea2ec4.tar.gz";
shellmet = builtins.fetchTarball "https://github.com/kowainik/shellmet/archive/36149eb0eb2b81916a93cdb92f3cb949d2eb9d23.tar.gz";
};
overrides = self: super: with pkgs.haskell.lib; {
github = dontCheck super.github; # `dontCheck` skips running tests on this package
};
}