summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/text/mdbook-cmdrun/default.nix
diff options
context:
space:
mode:
authorPablo Ovelleiro Corral <mail@pablo.tools>2023-01-10 11:05:54 +0100
committerPablo Ovelleiro Corral <mail@pablo.tools>2023-01-10 11:27:18 +0100
commitdad96d3c91f4b9594ed1e62090c6db4593a20525 (patch)
tree7db848abba6c19cc973ec91d28f72c641687cf19 /pkgs/tools/text/mdbook-cmdrun/default.nix
parentdfdaa0ce26e1e29967a01e1900aba5b112fc087e (diff)
mdbook-cmdrun: init at 2023-01-10
Diffstat (limited to 'pkgs/tools/text/mdbook-cmdrun/default.nix')
-rw-r--r--pkgs/tools/text/mdbook-cmdrun/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/tools/text/mdbook-cmdrun/default.nix b/pkgs/tools/text/mdbook-cmdrun/default.nix
new file mode 100644
index 000000000000..07252461336c
--- /dev/null
+++ b/pkgs/tools/text/mdbook-cmdrun/default.nix
@@ -0,0 +1,26 @@
+{ lib, rustPlatform, fetchFromGitHub }:
+
+rustPlatform.buildRustPackage rec {
+ pname = "mdbook-cmdrun";
+ version = "unstable-2023-01-10";
+
+ src = fetchFromGitHub {
+ owner = "FauconFan";
+ repo = pname;
+ rev = "3f6d243cd9de5659f166a5642eb46b2a6d8384e7";
+ hash = "sha256-JuKMAb3vwGTju9U1vaS9I39gObTz0JQQV4uol9SmsfM=";
+ };
+
+ # Tests are outdated currently, application works fine
+ # See for more info: https://github.com/FauconFan/mdbook-cmdrun/issues/2
+ doCheck = false;
+
+ cargoHash = "sha256-h3xCnx6byToZx83uWNLz05F3VIDR0D1NVtSOKPuYeG4=";
+
+ meta = with lib; {
+ description = "mdbook preprocessor to run arbitrary commands";
+ homepage = "https://github.com/FauconFan/mdbook-cmdrun";
+ license = licenses.mit;
+ maintainers = with maintainers; [ pinpox ];
+ };
+}