mirror of
https://github.com/kowainik/hit-on.git
synced 2024-09-11 12:15:46 +03:00
Drop nix support (#147)
This commit is contained in:
parent
39ac333873
commit
dc1dd199f5
43
.github/workflows/ci.yml
vendored
Normal file
43
.github/workflows/ci.yml
vendored
Normal 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
|
@ -1,10 +1,14 @@
|
|||||||
# Hit On
|
# Hit On
|
||||||
|
|
||||||
![hit-on logo](https://user-images.githubusercontent.com/4276606/53816638-d86e4a00-3f9e-11e9-83ab-74032363292f.png)
|
![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)
|
[![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)
|
[![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 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)
|
[![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)
|
[![MPL-2.0 license](https://img.shields.io/badge/license-MPL--2.0-blue.svg)](LICENSE)
|
||||||
|
|
||||||
**Kowainik Git Workflow Helper Tool.**
|
**Kowainik Git Workflow Helper Tool.**
|
||||||
@ -84,10 +88,6 @@ You need to follow these steps:
|
|||||||
```shell
|
```shell
|
||||||
stack install hit-on
|
stack install hit-on
|
||||||
```
|
```
|
||||||
* [Nix](https://nixos.org/nix/)
|
|
||||||
```shell
|
|
||||||
nix-env -f . -i
|
|
||||||
```
|
|
||||||
|
|
||||||
4. Make sure that `hit` is installed:
|
4. Make sure that `hit` is installed:
|
||||||
|
|
||||||
|
31
default.nix
31
default.nix
@ -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
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user