From 4082a0d841ae8f1373713e7d18bd83872ae47774 Mon Sep 17 00:00:00 2001 From: Thibault Lemaire Date: Fri, 18 Dec 2020 23:07:10 +0100 Subject: [PATCH] Make example path for NixOS install consistent --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 89490c5..996a8b1 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = with pkgs; [ pkg-config ]; - cargoSha256 = "1d1gvx14yai4dyz44pp2ffx2swfxnm0fwvldy96dw9gqmar69cpv"; + cargoSha256 = "06b36jv8hk4gqqm4nbh9gfszncvixs3zcjph45wlx7z5m61y9sdg"; meta = with stdenv.lib; { homepage = url; @@ -64,13 +64,17 @@ path to the above `default.nix` file. Link the plugin file using ```nix { pkgs, ... }: +let + nix-doc = pkgs.callPackage ./program/nix-doc/default.nix {}; +in + { nix.extraOptions = '' - plugin-files = ${pkgs.callPackage ../program/nixdoc/default.nix {}}/lib/libnix_doc_plugin.so + plugin-files = ${nix-doc}/lib/libnix_doc_plugin.so ''; environment.systemPackages = with pkgs; [ - (callPackage ../program/nixdoc/default.nix {}) + nix-doc ]; } ```