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.
This commit is contained in:
parent
addaa4effe
commit
edfd12c836
1 changed files with 10 additions and 13 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue