mirror of
https://github.com/msfjarvis/gitice
synced 2025-08-16 07:37:01 +05:30
chore: reformat all files with nixfmt-rfc-style
This commit is contained in:
parent
bd500e2a08
commit
a7b12817bf
3 changed files with 103 additions and 82 deletions
|
@ -1,8 +1,9 @@
|
||||||
(import (let
|
(import (
|
||||||
|
let
|
||||||
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
||||||
in
|
in
|
||||||
fetchTarball {
|
fetchTarball {
|
||||||
url = "https://github.com/nix-community/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
|
url = "https://github.com/nix-community/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
|
||||||
sha256 = lock.nodes.flake-compat.locked.narHash;
|
sha256 = lock.nodes.flake-compat.locked.narHash;
|
||||||
}) {src = ./.;})
|
}
|
||||||
.defaultNix
|
) { src = ./.; }).defaultNix
|
||||||
|
|
41
flake.nix
41
flake.nix
|
@ -22,7 +22,8 @@
|
||||||
inputs.flake-compat.url = "github:nix-community/flake-compat";
|
inputs.flake-compat.url = "github:nix-community/flake-compat";
|
||||||
inputs.flake-compat.flake = false;
|
inputs.flake-compat.flake = false;
|
||||||
|
|
||||||
outputs = {
|
outputs =
|
||||||
|
{
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
advisory-db,
|
advisory-db,
|
||||||
crane,
|
crane,
|
||||||
|
@ -31,7 +32,9 @@
|
||||||
flake-utils,
|
flake-utils,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
flake-utils.lib.eachDefaultSystem (system: let
|
flake-utils.lib.eachDefaultSystem (
|
||||||
|
system:
|
||||||
|
let
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
overlays = [ devshell.overlays.default ];
|
overlays = [ devshell.overlays.default ];
|
||||||
|
@ -51,23 +54,36 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
commonArgs = {
|
commonArgs = {
|
||||||
inherit src cargoArtifacts buildInputs nativeBuildInputs;
|
inherit
|
||||||
|
src
|
||||||
|
cargoArtifacts
|
||||||
|
buildInputs
|
||||||
|
nativeBuildInputs
|
||||||
|
;
|
||||||
cargoClippyExtraArgs = "--all-targets -- --deny warnings";
|
cargoClippyExtraArgs = "--all-targets -- --deny warnings";
|
||||||
};
|
};
|
||||||
|
|
||||||
gitice = craneLib.buildPackage (commonArgs // { doCheck = false; });
|
gitice = craneLib.buildPackage (commonArgs // { doCheck = false; });
|
||||||
gitice-clippy = craneLib.cargoClippy (commonArgs // { });
|
gitice-clippy = craneLib.cargoClippy (commonArgs // { });
|
||||||
gitice-fmt = craneLib.cargoFmt (commonArgs // { });
|
gitice-fmt = craneLib.cargoFmt (commonArgs // { });
|
||||||
gitice-audit =
|
gitice-audit = craneLib.cargoAudit (commonArgs // { inherit advisory-db; });
|
||||||
craneLib.cargoAudit (commonArgs // {inherit advisory-db;});
|
gitice-nextest = craneLib.cargoNextest (
|
||||||
gitice-nextest = craneLib.cargoNextest (commonArgs
|
commonArgs
|
||||||
// {
|
// {
|
||||||
partitions = 1;
|
partitions = 1;
|
||||||
partitionType = "count";
|
partitionType = "count";
|
||||||
});
|
}
|
||||||
in {
|
);
|
||||||
|
in
|
||||||
|
{
|
||||||
checks = {
|
checks = {
|
||||||
inherit gitice gitice-audit gitice-clippy gitice-fmt gitice-nextest;
|
inherit
|
||||||
|
gitice
|
||||||
|
gitice-audit
|
||||||
|
gitice-clippy
|
||||||
|
gitice-fmt
|
||||||
|
gitice-nextest
|
||||||
|
;
|
||||||
};
|
};
|
||||||
|
|
||||||
packages.default = gitice;
|
packages.default = gitice;
|
||||||
|
@ -75,7 +91,9 @@
|
||||||
apps.default = flake-utils.lib.mkApp { drv = gitice; };
|
apps.default = flake-utils.lib.mkApp { drv = gitice; };
|
||||||
|
|
||||||
devShells.default = pkgs.devshell.mkShell {
|
devShells.default = pkgs.devshell.mkShell {
|
||||||
bash = {interactive = "";};
|
bash = {
|
||||||
|
interactive = "";
|
||||||
|
};
|
||||||
|
|
||||||
env = [
|
env = [
|
||||||
{
|
{
|
||||||
|
@ -94,5 +112,6 @@
|
||||||
stdenv.cc
|
stdenv.cc
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
});
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
(import (let
|
(import (
|
||||||
|
let
|
||||||
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
||||||
in
|
in
|
||||||
fetchTarball {
|
fetchTarball {
|
||||||
url = "https://github.com/nix-community/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
|
url = "https://github.com/nix-community/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
|
||||||
sha256 = lock.nodes.flake-compat.locked.narHash;
|
sha256 = lock.nodes.flake-compat.locked.narHash;
|
||||||
}) {src = ./.;})
|
}
|
||||||
.shellNix
|
) { src = ./.; }).shellNix
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue