From 81b93cc3e4ed5dbb8870b991d876538d2b956b1e Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sat, 7 Sep 2024 19:30:23 +0530 Subject: [PATCH] switch to mdboko-alerts from nixpkgs --- flake.nix | 7 +++---- mdbook-alerts.nix | 23 ----------------------- 2 files changed, 3 insertions(+), 27 deletions(-) delete mode 100644 mdbook-alerts.nix diff --git a/flake.nix b/flake.nix index 72d7e1e..d87adfc 100644 --- a/flake.nix +++ b/flake.nix @@ -18,8 +18,7 @@ pkgs = import nixpkgs { inherit system; }; - mdbook-alerts = pkgs.callPackage ./mdbook-alerts.nix { }; - package = pkgs.callPackage ./default.nix { inherit mdbook-alerts; }; + package = pkgs.callPackage ./default.nix { }; app = pkgs.writeShellScriptBin "app" '' trap 'kill "''${child_pid}"; wait "''${child_pid}";' SIGINT SIGTERM ${pkgs.merecat}/bin/merecat -n -p 8080 ${package}/share/web & @@ -32,11 +31,11 @@ devShells.default = pkgs.mkShell { packages = [ pkgs.mdbook - mdbook-alerts + pkgs.mdbook-alerts ]; }; packages = { - inherit app mdbook-alerts; + inherit app; default = package; }; } diff --git a/mdbook-alerts.nix b/mdbook-alerts.nix deleted file mode 100644 index 15db976..0000000 --- a/mdbook-alerts.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ lib, fetchFromGitHub, rustPlatform }: - -rustPlatform.buildRustPackage rec { - pname = "mdbook-alerts"; - version = "0.5.2"; - - src = fetchFromGitHub { - owner = "lambdalisue"; - repo = "rs-mdbook-alerts"; - rev = "v${version}"; - hash = "sha256-YlCvsDdWuoajuXt2hOGx7jW+lmLeMOSQ809bG9ZBaBY="; - }; - - cargoHash = "sha256-OuZo8QTE5Z1991S5CEkfxlXghQbnalt1UGNs4KozmEk="; - - meta = with lib; { - description = "mdBook preprocessor to add GitHub Flavored Markdown's Alerts to your book"; - mainProgram = "mdbook-alerts"; - license = licenses.mit; - maintainers = with maintainers; [ adtya ]; - homepage = "https://github.com/lambdalisue/rs-mdbook-alerts"; - }; -}