mirror of
https://github.com/msfjarvis/clipboard-substitutor
synced 2025-08-16 16:17:06 +05:30
chore: reformat Nix files with alejandra
This commit is contained in:
parent
baa7902ec3
commit
8f0408e6c9
3 changed files with 79 additions and 64 deletions
12
default.nix
12
default.nix
|
@ -1,6 +1,8 @@
|
||||||
(import (let lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
(import (let
|
||||||
in fetchTarball {
|
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
||||||
url =
|
in
|
||||||
"https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
|
fetchTarball {
|
||||||
|
url = "https://github.com/edolstra/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
|
||||||
|
|
25
flake.nix
25
flake.nix
|
@ -35,10 +35,16 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs = {
|
||||||
{ self, nixpkgs, crane, flake-utils, advisory-db, rust-overlay, ... }:
|
self,
|
||||||
flake-utils.lib.eachDefaultSystem (system:
|
nixpkgs,
|
||||||
let
|
crane,
|
||||||
|
flake-utils,
|
||||||
|
advisory-db,
|
||||||
|
rust-overlay,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
flake-utils.lib.eachDefaultSystem (system: let
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
overlays = [(import rust-overlay)];
|
overlays = [(import rust-overlay)];
|
||||||
|
@ -49,7 +55,8 @@
|
||||||
craneLib = (crane.mkLib pkgs).overrideToolchain rustStable;
|
craneLib = (crane.mkLib pkgs).overrideToolchain rustStable;
|
||||||
src = ./.;
|
src = ./.;
|
||||||
buildInputs = with pkgs;
|
buildInputs = with pkgs;
|
||||||
[ xorg.libxcb python39 ] ++ pkgs.lib.optionals stdenv.isDarwin
|
[xorg.libxcb python39]
|
||||||
|
++ pkgs.lib.optionals stdenv.isDarwin
|
||||||
[pkgs.darwin.apple_sdk.frameworks.AppKit];
|
[pkgs.darwin.apple_sdk.frameworks.AppKit];
|
||||||
cargoArtifacts = craneLib.buildDepsOnly {inherit src buildInputs;};
|
cargoArtifacts = craneLib.buildDepsOnly {inherit src buildInputs;};
|
||||||
|
|
||||||
|
@ -73,8 +80,12 @@
|
||||||
checks = {
|
checks = {
|
||||||
# TODO: migrate to cargo-audit
|
# TODO: migrate to cargo-audit
|
||||||
# clipboard-substitutor-audit
|
# clipboard-substitutor-audit
|
||||||
inherit clipboard-substitutor clipboard-substitutor-clippy
|
inherit
|
||||||
clipboard-substitutor-fmt clipboard-substitutor-nextest;
|
clipboard-substitutor
|
||||||
|
clipboard-substitutor-clippy
|
||||||
|
clipboard-substitutor-fmt
|
||||||
|
clipboard-substitutor-nextest
|
||||||
|
;
|
||||||
};
|
};
|
||||||
|
|
||||||
packages.default = clipboard-substitutor;
|
packages.default = clipboard-substitutor;
|
||||||
|
|
12
shell.nix
12
shell.nix
|
@ -1,6 +1,8 @@
|
||||||
(import (let lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
(import (let
|
||||||
in fetchTarball {
|
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
||||||
url =
|
in
|
||||||
"https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
|
fetchTarball {
|
||||||
|
url = "https://github.com/edolstra/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