diff options
author | Paul Bonaud <paul.bonaud@fretlink.com> | 2020-10-05 18:48:57 +0200 |
---|---|---|
committer | Paul Bonaud <paul.bonaud@fretlink.com> | 2020-10-06 13:14:16 +0200 |
commit | ce6889c6f90ba5bc4843afb1f4e321866b324ff6 (patch) | |
tree | d85822eb6821f86815014e14528668850cc67370 /custom.nix | |
parent | c8f710598541bc594896c962691173c7f2281c58 (diff) | |
download | ansible-kong-app-ce6889c6f90ba5bc4843afb1f4e321866b324ff6.tar.gz ansible-kong-app-ce6889c6f90ba5bc4843afb1f4e321866b324ff6.tar.zst ansible-kong-app-ce6889c6f90ba5bc4843afb1f4e321866b324ff6.zip |
travis: use recent nixpkgs channel (20.09) to install dependencies
Diffstat (limited to 'custom.nix')
-rw-r--r-- | custom.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/custom.nix b/custom.nix new file mode 100644 index 0000000..f8fe7ce --- /dev/null +++ b/custom.nix | |||
@@ -0,0 +1,24 @@ | |||
1 | { pkgs ? import <nixpkgs> {} }: with pkgs; | ||
2 | |||
3 | let | ||
4 | mkDhallVersion = | ||
5 | version: sha256: | ||
6 | stdenv.mkDerivation { | ||
7 | name = "dhall-${version}"; | ||
8 | inherit version; | ||
9 | src = fetchurl { | ||
10 | url = "https://github.com/dhall-lang/dhall-haskell/releases/download/${version}/dhall-${version}-x86_64-linux.tar.bz2"; | ||
11 | inherit sha256; | ||
12 | }; | ||
13 | unpackPhase = '' | ||
14 | tar -xjf $src | ||
15 | ''; | ||
16 | installPhase = '' | ||
17 | mkdir -p $out/bin | ||
18 | mv bin/dhall $out/bin/ | ||
19 | ''; | ||
20 | }; | ||
21 | in | ||
22 | { | ||
23 | dhall = mkDhallVersion "1.34.0" "0n64jkgbv7a3cmlv3gxpgc11p9b5w0k9nc0zm9am2pzmp6vm6b4n"; | ||
24 | } | ||