From 74f3dd4af2c2214149e3a969face36a2b4468840 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 4 Oct 2024 17:20:35 +0200 Subject: docs(manual): Remove --- flake.nix | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index df124f6..2b20986 100644 --- a/flake.nix +++ b/flake.nix @@ -6,7 +6,6 @@ # # You should have received a copy of the License along with this program. # If not, see . - { description = "A simple cli utility to shell quote the text inputed into it"; @@ -73,9 +72,6 @@ then pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.default) else pkgs.rust-bin.stable.latest.default; - cargo_toml = craneLib.cleanCargoToml {cargoToml = ./Cargo.toml;}; - pname = cargo_toml.package.name; - craneLib = (crane.mkLib pkgs).overrideToolchain rust_minimal; craneBuild = craneLib.buildPackage { src = craneLib.cleanCargoSource ./.; @@ -83,31 +79,9 @@ doCheck = true; }; - manual = pkgs.stdenv.mkDerivation { - name = "${pname}-manual"; - inherit (cargo_toml.package) version; - - src = ./docs; - nativeBuildInputs = with pkgs; [pandoc]; - - buildPhase = '' - mkdir --parents $out/docs; - - pandoc "./${pname}.1.md" -s -t man > $out/docs/${pname}.1 - ''; - - installPhase = '' - install -D $out/docs/${pname}.1 $out/share/man/man1/${pname}; - ''; - }; - treefmtEval = import ./treefmt.nix {inherit treefmt-nix pkgs;}; in { - packages.default = pkgs.symlinkJoin { - inherit (cargo_toml.package) name; - - paths = [manual craneBuild]; - }; + packages.default = craneBuild; checks = { inherit craneBuild; -- cgit 1.4.1