nmd: turn into a fixed-output derivation
This should avoid the need for IFD. Also switch source fetch to Sourcehut since it is back online.
This commit is contained in:
parent
edfd12c836
commit
dce7cfb4ef
1 changed files with 9 additions and 12 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue