Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/Guibi1/CME. A simple editor for small commit messages on the terminal
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990{ description = "A prompt-like file editor for commit messages.";
inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; flake-utils.url = "github:numtide/flake-utils"; crane.url = "github:ipetkov/crane"; };
outputs = { self, nixpkgs, flake-utils, crane, ... }: flake-utils.lib.eachDefaultSystem ( system: let pkgs = nixpkgs.legacyPackages.${system};
craneLib = crane.mkLib pkgs; src = craneLib.cleanCargoSource ./.;
commonArgs = { inherit src; strictDeps = true; };
cargoArtifacts = craneLib.buildDepsOnly commonArgs;
cme = craneLib.buildPackage ( commonArgs // { inherit cargoArtifacts; doCheck = false; } ); in { checks = { inherit cme;
cme-clippy = craneLib.cargoClippy ( commonArgs // { inherit cargoArtifacts; cargoClippyExtraArgs = "--all-targets -- --deny warnings"; } );
cme-doc = craneLib.cargoDoc ( commonArgs // { inherit cargoArtifacts; env.RUSTDOCFLAGS = "--deny warnings"; } );
cme-fmt = craneLib.cargoFmt { inherit src; };
cme-nextest = craneLib.cargoNextest ( commonArgs // { inherit cargoArtifacts; partitions = 1; partitionType = "count"; cargoNextestPartitionsExtraArgs = "--no-tests=pass"; } ); };
packages = { default = cme; };
apps.default = flake-utils.lib.mkApp { drv = cme; };
devShells.default = craneLib.devShell { checks = self.checks.${system}; }; } );}