CI: mv rev doc (.travis.yml->build.sh)
M .travis.yml M build.sh
This commit is contained in:
parent
e1fa072f00
commit
f074bd8978
10
.travis.yml
10
.travis.yml
|
@ -23,16 +23,6 @@ env:
|
|||
global:
|
||||
# NOTE: This is secure CACHIX_SIGNING_KEY=val
|
||||
- secure: "dm6I+M4+V+C7QMTpcSADdKPE633SvmToXZrTbZ7miNDGmMN+/SfHeN2ybi1+PW6oViMlbPN/7J/aEfiGjSJI8vLk72Y4uCWGmpSb8TXZLu6+whnxtZzzW8+z4tsM4048QJg7CF3N/25U8thRFgs3DqUub1Sf3nG9LrNWdz6ZcDQ="
|
||||
# NOTE: Nix by default uses nixpkgs-unstable channel
|
||||
# NOTE: Setup for Nixpkgs revision
|
||||
# `rev` vals in order of freshness -> cache & stability:
|
||||
# { master
|
||||
# , commitHash
|
||||
# , haskell-updates # Haskell development branch in Nixpkgs, can be inconsistent. Weekly merged into the upstream
|
||||
# , nixpkgs-unstable # Default branch on Nix installation, default for non NixOS
|
||||
# , nixos-unstable # nixpkgs-unstable that passes a bunch of base tests
|
||||
# , nixos-20.03 # Last stable release, gets almost no updates to recipes, gets only required backports
|
||||
# }
|
||||
###
|
||||
### NOTE: This configuration uses `build.sh` interface, which uses `default.nix` interface, which exposes the Nixpkgs Haskell Lib interface.
|
||||
###
|
||||
|
|
11
build.sh
11
build.sh
|
@ -7,6 +7,17 @@ set -Eexuo pipefail
|
|||
|
||||
# NOTE: If var not imported - set to the default value
|
||||
GHCVERSION=${GHCVERSION:-'ghc8101'}
|
||||
# NOTE: Nix by default uses nixpkgs-unstable channel
|
||||
# Setup for Nixpkgs revision:
|
||||
# `rev` vals in order of freshness -> cache & stability:
|
||||
# { master
|
||||
# , commitHash
|
||||
# , haskell-updates # Haskell development branch in Nixpkgs, can be inconsistent. Weekly merged into the upstream
|
||||
# , nixpkgs-unstable # Default branch on Nix installation, default for non NixOS
|
||||
# , nixos-unstable # nixpkgs-unstable that passes a bunch of base tests
|
||||
# , nixos-20.03 # Last stable release, gets almost no updates to recipes, gets only required backports
|
||||
# ...
|
||||
# }
|
||||
rev=${rev:-'nixpkgs-unstable'}
|
||||
NIX_PATH=${NIX_PATH:-"nixpkgs=https://github.com/nixos/nixpkgs/archive/$rev.tar.gz"}
|
||||
export NIX_PATH
|
||||
|
|
Loading…
Reference in New Issue