diff options
author | Clement Delafargue <clement.delafargue@fretlink.com> | 2019-10-03 11:31:56 +0200 |
---|---|---|
committer | Clement Delafargue <clement.delafargue@fretlink.com> | 2019-10-03 11:31:56 +0200 |
commit | 25bf64cbc9a8ed4fef36c15756f9d7f8e96e2d06 (patch) | |
tree | d6ffd754b83687e45db23522aa8273218071732e /dhall-1.26.1.nix | |
parent | cfcebcd5f0c7a99ab60de773e67e7ee35e8b0f0a (diff) | |
download | ansible-kong-app-25bf64cbc9a8ed4fef36c15756f9d7f8e96e2d06.tar.gz ansible-kong-app-25bf64cbc9a8ed4fef36c15756f9d7f8e96e2d06.tar.zst ansible-kong-app-25bf64cbc9a8ed4fef36c15756f9d7f8e96e2d06.zip |
upgrade dhall to 1.26.1 and merge types and termspolykinds
Previously, types were flattened and terms were nested (as are the
directories). For consistency, I made the types nested as well.
Diffstat (limited to 'dhall-1.26.1.nix')
-rw-r--r-- | dhall-1.26.1.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dhall-1.26.1.nix b/dhall-1.26.1.nix new file mode 100644 index 0000000..918a528 --- /dev/null +++ b/dhall-1.26.1.nix | |||
@@ -0,0 +1,22 @@ | |||
1 | { pkgs ? import <nixpkgs> {} }: with pkgs; | ||
2 | |||
3 | let | ||
4 | mkVersion = | ||
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 | mkVersion "1.26.1" "0sl4r3mfairgd6kn26hs1r1lkh8rn992grd73078rhqf5w90ag05" | ||