summary refs log tree commit diff
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2021-10-30 16:57:39 +0200
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-10-30 09:35:11 -0700
commitfb0c89af55d39a52c8702839d21e55c2557de116 (patch)
treef21c96356177db8d1e9494e7903f26f73e35de1f
parent256c71f7fa51fa2a7d5be461fbee7d20c4dbf9d0 (diff)
downloadnixpkgs-fb0c89af55d39a52c8702839d21e55c2557de116.tar
nixpkgs-fb0c89af55d39a52c8702839d21e55c2557de116.tar.gz
nixpkgs-fb0c89af55d39a52c8702839d21e55c2557de116.tar.bz2
nixpkgs-fb0c89af55d39a52c8702839d21e55c2557de116.tar.lz
nixpkgs-fb0c89af55d39a52c8702839d21e55c2557de116.tar.xz
nixpkgs-fb0c89af55d39a52c8702839d21e55c2557de116.tar.zst
nixpkgs-fb0c89af55d39a52c8702839d21e55c2557de116.zip
ocamlPackages.xml-light: switch to fetchFromGitHub
-rw-r--r--pkgs/development/ocaml-modules/xml-light/default.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/pkgs/development/ocaml-modules/xml-light/default.nix b/pkgs/development/ocaml-modules/xml-light/default.nix
index a6db0dc7870..248b3f12407 100644
--- a/pkgs/development/ocaml-modules/xml-light/default.nix
+++ b/pkgs/development/ocaml-modules/xml-light/default.nix
@@ -1,4 +1,4 @@
-{stdenv, lib, fetchurl, ocaml, findlib}:
+{ stdenv, lib, fetchFromGitHub, ocaml, findlib }:
 let
   pname = "xml-light";
   version = "2.4";
@@ -6,9 +6,11 @@ in
 stdenv.mkDerivation {
   name = "ocaml-${pname}-${version}";
 
-  src = fetchurl {
-    url = "https://github.com/ncannasse/${pname}/archive/${version}.tar.gz";
-    sha256 = "10b55qf6mvdp11ny3h0jv6k6wrs78jr9lhsiswl0xya7z8r8j0a2";
+  src = fetchFromGitHub {
+    owner = "ncannasse";
+    repo = "xml-light";
+    rev = version;
+    sha256 = "sha256-2txmkl/ZN5RGaLQJmr+orqwB4CbFk2RpLJd4gr7kPiE=";
   };
 
   buildInputs = [ ocaml findlib ];
@@ -38,6 +40,6 @@ stdenv.mkDerivation {
     homepage = "http://tech.motion-twin.com/xmllight.html";
     license = lib.licenses.lgpl21;
     maintainers = [ lib.maintainers.romildo ];
-    platforms = ocaml.meta.platforms or [];
+    platforms = ocaml.meta.platforms or [ ];
   };
 }