depot/pkgs/by-name/ni/nix-lib-nmd/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

29 lines
696 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 = "Documentation framework for projects based on NixOS modules";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ rycee ];
};
}