Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from auxolotl/feat/nixdoc
Browse files Browse the repository at this point in the history
nixdoc: init at 3.0.2
  • Loading branch information
Sorixelle authored May 14, 2024
2 parents 4d82942 + b472274 commit 823445c
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 29 deletions.
22 changes: 1 addition & 21 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 3 additions & 8 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};

outputs =
{ self, nixpkgs, ... }:
outputs = { self, ... }:
let
forAllSystems = self.lib.genAttrs self.lib.systems.flakeExposed;
in
{
lib = import ./lib;

nixPackages = forAllSystems (system: nixpkgs.legacyPackages.${system});

auxPackages = forAllSystems (system:
(
let requiredVersion = import ./lib/minver.nix; in
Expand Down Expand Up @@ -42,6 +35,8 @@
)
);

legacyPackages = forAllSystems (system: import ./. { inherit system; });

# To test, run nix build .#tests.x86_64-linux.release
tests = forAllSystems (system: {
systems = import ./lib/tests/systems.nix;
Expand Down
33 changes: 33 additions & 0 deletions pkgs/by-name/ni/nixdoc/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
darwin,
}: let
version = "3.0.2";
in
rustPlatform.buildRustPackage {
pname = "nixdoc";
inherit version;

src = fetchFromGitHub {
owner = "nix-community";
repo = "nixdoc";
rev = "v${version}";
sha256 = "sha256-V3MAvbdYk3DL064UYcJE9HmwfQBwpMxVXWiAKX6honA=";
};

cargoHash = "sha256-RFxTjLiJCEc42Mb8rcayOFHkYk2GfpgsO3+hAaRwHgs=";

buildInputs = lib.optionals stdenv.isDarwin [darwin.Security];

meta = {
description = "Generate documentation for Nix functions";
mainProgram = "nixdoc";
homepage = "https://github.com/nix-community/nixdoc";
license = lib.licenses.gpl3;
# maintainers = with lib.maintainers; [ infinisil hsjobeki ];
platforms = lib.platforms.unix;
};
}

0 comments on commit 823445c

Please sign in to comment.