mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
dce7cfb4ef
This should avoid the need for IFD. Also switch source fetch to Sourcehut since it is back online.
30 lines
698 B
Nix
30 lines
698 B
Nix
{ lib, stdenv, fetchFromSourcehut }:
|
|
|
|
let version = "0.5.0";
|
|
in stdenv.mkDerivation {
|
|
pname = "nix-lib-nmd";
|
|
inherit version;
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~rycee";
|
|
repo = "nmd";
|
|
rev = "v${version}";
|
|
hash = "sha256-x3zzcdvhJpodsmdjqB4t5mkVW22V3wqHLOun0KRBzUI=";
|
|
};
|
|
|
|
outputHashMode = "recursive";
|
|
outputHash = "sha256-7BQmDJBo7rzv0rgfRiUAR3HvKkUHQ6x0umhBRhAAyzM=";
|
|
|
|
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 ];
|
|
};
|
|
}
|