From 8f1a669d9f3c7740d641ba9ee40947b4cfc9998b Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sat, 30 Oct 2021 13:15:56 +0200 Subject: [PATCH] ocsigen-i18n: switch to fetchFromGitHub --- pkgs/development/tools/ocaml/ocsigen-i18n/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/development/tools/ocaml/ocsigen-i18n/default.nix b/pkgs/development/tools/ocaml/ocsigen-i18n/default.nix index c3da3bc2327a..54e1ee55a7bf 100644 --- a/pkgs/development/tools/ocaml/ocsigen-i18n/default.nix +++ b/pkgs/development/tools/ocaml/ocsigen-i18n/default.nix @@ -1,7 +1,6 @@ -{ lib, stdenv, fetchzip, ocamlPackages }: +{ lib, stdenv, fetchFromGitHub, ocamlPackages }: -stdenv.mkDerivation rec -{ +stdenv.mkDerivation rec { pname = "ocsigen-i18n"; version = "3.7.0"; @@ -14,8 +13,10 @@ stdenv.mkDerivation rec make bindir=$out/bin install ''; - src = fetchzip { - url = "https://github.com/besport/${pname}/archive/${version}.tar.gz"; + src = fetchFromGitHub { + owner = "besport"; + repo = "ocsigen-i18n"; + rev = version; sha256 = "sha256-PmdDyn+MUcNFrZpP/KLGQzdXUFRr+dYRAZjTZxHSeaw="; };