ocamlformat: remove unnecessary version check

This commit is contained in:
Thiago Kenji Okada 2022-06-02 09:47:23 +01:00 committed by GitHub
parent e4fc3bea2f
commit 3119452427
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,11 +4,7 @@
}:
let src =
if version == "0.11.0"
then fetchzip {
url = "https://github.com/ocaml-ppx/ocamlformat/archive/0.11.0.tar.gz";
sha256 = "0zvjn71jd4d3znnpgh0yphb2w8ggs457b6bl6cg1fmpdgxnds6yx";
} else fetchurl {
fetchurl {
url = "https://github.com/ocaml-ppx/ocamlformat/releases/download/${version}/${tarballName}";
sha256 = {
"0.19.0" = "0ihgwl7d489g938m1jvgx8azdgq9f5np5mzqwwya797hx2m4dz32";