Loading pkgs/tools/text/termbook/Cargo.lock 0 → 100644 +2900 −0 File added.Preview size limit exceeded, changes collapsed. Show changes pkgs/tools/text/termbook/default.nix +27 −3 Original line number Diff line number Diff line { lib, rustPlatform, fetchFromGitHub, stdenv, darwin }: { lib , rustPlatform , fetchFromGitHub , pkg-config , oniguruma , stdenv , darwin }: rustPlatform.buildRustPackage rec { pname = "termbook-cli"; Loading @@ -11,12 +18,29 @@ rustPlatform.buildRustPackage rec { sha256 = "Bo3DI0cMXIfP7ZVr8MAW/Tmv+4mEJBIQyLvRfVBDG8c="; }; cargoSha256 = "sha256-9fFvJJlDzBmbI7hes/wfjAk1Cl2H55T5n8HLnUmDw/c="; cargoLock = { lockFile = ./Cargo.lock; }; nativeBuildInputs = [ pkg-config ]; buildInputs = lib.optionals stdenv.isDarwin [ buildInputs = [ oniguruma ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ]; env = { RUSTONIG_SYSTEM_LIBONIG = true; }; # update dependencies to fix build failure caused by unaligned packed structs postPatch = '' ln -sf ${./Cargo.lock} Cargo.lock ''; meta = with lib; { description = "A runner for `mdbooks` to keep your documentation tested"; homepage = "https://github.com/Byron/termbook/"; Loading Loading
pkgs/tools/text/termbook/Cargo.lock 0 → 100644 +2900 −0 File added.Preview size limit exceeded, changes collapsed. Show changes
pkgs/tools/text/termbook/default.nix +27 −3 Original line number Diff line number Diff line { lib, rustPlatform, fetchFromGitHub, stdenv, darwin }: { lib , rustPlatform , fetchFromGitHub , pkg-config , oniguruma , stdenv , darwin }: rustPlatform.buildRustPackage rec { pname = "termbook-cli"; Loading @@ -11,12 +18,29 @@ rustPlatform.buildRustPackage rec { sha256 = "Bo3DI0cMXIfP7ZVr8MAW/Tmv+4mEJBIQyLvRfVBDG8c="; }; cargoSha256 = "sha256-9fFvJJlDzBmbI7hes/wfjAk1Cl2H55T5n8HLnUmDw/c="; cargoLock = { lockFile = ./Cargo.lock; }; nativeBuildInputs = [ pkg-config ]; buildInputs = lib.optionals stdenv.isDarwin [ buildInputs = [ oniguruma ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ]; env = { RUSTONIG_SYSTEM_LIBONIG = true; }; # update dependencies to fix build failure caused by unaligned packed structs postPatch = '' ln -sf ${./Cargo.lock} Cargo.lock ''; meta = with lib; { description = "A runner for `mdbooks` to keep your documentation tested"; homepage = "https://github.com/Byron/termbook/"; Loading