diff options
author | Robert Helgesson <robert@rycee.net> | 2024-01-11 14:00:51 +0100 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2024-01-12 13:28:23 +0100 |
commit | adb78d94434065c684e2d1817ed5fcb01c82fede (patch) | |
tree | cd1bc7622a2212d30c88fbf607961bd418e00f7a /pkgs/by-name/ni | |
parent | 1a502c91a77e0c8bbc379f5b4097e31b9507ef59 (diff) |
nix-lib-nmd: init at 0.5.0
Diffstat (limited to 'pkgs/by-name/ni')
-rw-r--r-- | pkgs/by-name/ni/nix-lib-nmd/package.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/by-name/ni/nix-lib-nmd/package.nix b/pkgs/by-name/ni/nix-lib-nmd/package.nix new file mode 100644 index 0000000000000..1c7e43c4f875c --- /dev/null +++ b/pkgs/by-name/ni/nix-lib-nmd/package.nix @@ -0,0 +1,32 @@ +{ 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 ]; + }; +} |