mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:14:10 +00:00
33 lines
815 B
Nix
33 lines
815 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
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=";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -v "$out"
|
|
cp -rv * "$out"
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://git.sr.ht/~rycee/nmd";
|
|
description = "A documentation framework for projects based on NixOS modules";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ rycee ];
|
|
};
|
|
}
|