From a6955ad37a2ed3bab7396b64430765bb8a0a6cee Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Mon, 8 Oct 2018 19:02:47 +0200 Subject: [PATCH] scdoc: Switch to fetchgit because the archive is unavailable The Git repository is still accessible but the webpage [0] and the download link [1] currently return "404 Not Found". [0]: https://git.sr.ht/~sircmpwn/scdoc/ [1]: https://git.sr.ht/~sircmpwn/scdoc/snapshot/scdoc-${version}.tar.xz --- pkgs/tools/typesetting/scdoc/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/typesetting/scdoc/default.nix b/pkgs/tools/typesetting/scdoc/default.nix index bdf074b558e..225e360b8d3 100644 --- a/pkgs/tools/typesetting/scdoc/default.nix +++ b/pkgs/tools/typesetting/scdoc/default.nix @@ -1,12 +1,13 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchgit }: stdenv.mkDerivation rec { name = "scdoc-${version}"; version = "1.4.2"; - src = fetchurl { - url = "https://git.sr.ht/~sircmpwn/scdoc/snapshot/scdoc-${version}.tar.xz"; - sha256 = "1hhvg9cifx1v8b5i91lgq5cjdcskzl3rz7vwmwdq7ad0nqnykz82"; + src = fetchgit { + url = "https://git.sr.ht/~sircmpwn/scdoc"; + rev = version; + sha256 = "00a23kw8d36qik6h5kds13pzfnr58krlblfh9n2f0rldf0m9ldk1"; }; postPatch = ''