diff options
author | Robert Helgesson <robert@rycee.net> | 2024-01-15 12:07:53 +0100 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2024-01-15 16:38:44 +0100 |
commit | edfd12c83689d8d3f851dd6686579f6437988526 (patch) | |
tree | 712b83360c949241b4753acacd70d22f7d859b42 /pkgs/by-name/ni | |
parent | addaa4effeb8672cc7c39241e15088bd03af2dad (diff) |
nmt: 0.5.0 -> 0.5.1
Also switch source fetch to Sourcehut since it is back online. Also change the package to a fixed-output derivation. This should avoid the need for IFD.
Diffstat (limited to 'pkgs/by-name/ni')
-rw-r--r-- | pkgs/by-name/ni/nix-lib-nmt/package.nix | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/pkgs/by-name/ni/nix-lib-nmt/package.nix b/pkgs/by-name/ni/nix-lib-nmt/package.nix index bfe6085b30d1f..7cb6ff1971399 100644 --- a/pkgs/by-name/ni/nix-lib-nmt/package.nix +++ b/pkgs/by-name/ni/nix-lib-nmt/package.nix @@ -1,23 +1,20 @@ -{ lib, stdenv, fetchurl }: +{ lib, stdenv, fetchFromSourcehut }: -let version = "0.5.0"; +let version = "0.5.1"; in stdenv.mkDerivation { pname = "nix-lib-nmt"; inherit version; - # TODO: Restore when Sourcehut once its back from DDoS attack. - # src = fetchFromSourcehut { - # owner = "~rycee"; - # repo = "nmt"; - # rev = "v${version}"; - # hash = "sha256-1glxIg/b+8qr+ZsSsBqZIqGpsYWzRuMyz74/sy765Uk="; - # }; - - src = fetchurl { - url = "https://rycee.net/tarballs/nmt-${version}.tar.gz"; - hash = "sha256-AO1iLsfZSLbR65tRBsAqJ98CewfSl5yNf7C6XaZj0wM="; + src = fetchFromSourcehut { + owner = "~rycee"; + repo = "nmt"; + rev = "v${version}"; + hash = "sha256-krVKx3/u1mDo8qe5qylYgmwAmlAPHa1BSPDzxq09FmI="; }; + outputHashMode = "recursive"; + outputHash = "sha256-N7kGGDDXsXtc1S3Nqw7lCIbnVHtGNNLM1oO+Xe64hSE="; + installPhase = '' mkdir -pv "$out" cp -rv * "$out" |