diff --git a/pkgs/by-name/ni/nix-lib-nmd/package.nix b/pkgs/by-name/ni/nix-lib-nmd/package.nix index 1c7e43c4f875..6365989a2ae2 100644 --- a/pkgs/by-name/ni/nix-lib-nmd/package.nix +++ b/pkgs/by-name/ni/nix-lib-nmd/package.nix @@ -1,23 +1,20 @@ -{ lib, stdenv, fetchurl }: +{ lib, stdenv, fetchFromSourcehut }: let version = "0.5.0"; in stdenv.mkDerivation { pname = "nix-lib-nmd"; inherit version; - # TODO: Restore when Sourcehut once its back from DDoS attack. - # src = fetchFromSourcehut { - # owner = "~rycee"; - # repo = "nmd"; - # rev = "v${version}"; - # hash = "sha256-1glxIg/b+8qr+ZsSsBqZIqGpsYWzRuMyz74/sy765Uk="; - # }; - - src = fetchurl { - url = "https://rycee.net/tarballs/nmd-${version}.tar.gz"; - hash = "sha256-+65+VYFgnbFGzCyyQytyxVStSZwEP989qi/6EDOdA8A="; + src = fetchFromSourcehut { + owner = "~rycee"; + repo = "nmd"; + rev = "v${version}"; + hash = "sha256-x3zzcdvhJpodsmdjqB4t5mkVW22V3wqHLOun0KRBzUI="; }; + outputHashMode = "recursive"; + outputHash = "sha256-7BQmDJBo7rzv0rgfRiUAR3HvKkUHQ6x0umhBRhAAyzM="; + installPhase = '' mkdir -v "$out" cp -rv * "$out"