mirror of
https://github.com/msfjarvis/clipboard-substitutor
synced 2025-08-14 15:27:01 +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);
|
||||
in fetchTarball {
|
||||
url =
|
||||
"https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
|
||||
(import (let
|
||||
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
||||
in
|
||||
fetchTarball {
|
||||
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
|
||||
sha256 = lock.nodes.flake-compat.locked.narHash;
|
||||
}) { src = ./.; }).defaultNix
|
||||
}) {src = ./.;})
|
||||
.defaultNix
|
||||
|
|
25
flake.nix
25
flake.nix
|
@ -35,10 +35,16 @@
|
|||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
{ self, nixpkgs, crane, flake-utils, advisory-db, rust-overlay, ... }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
crane,
|
||||
flake-utils,
|
||||
advisory-db,
|
||||
rust-overlay,
|
||||
...
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (system: let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [(import rust-overlay)];
|
||||
|
@ -49,7 +55,8 @@
|
|||
craneLib = (crane.mkLib pkgs).overrideToolchain rustStable;
|
||||
src = ./.;
|
||||
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];
|
||||
cargoArtifacts = craneLib.buildDepsOnly {inherit src buildInputs;};
|
||||
|
||||
|
@ -73,8 +80,12 @@
|
|||
checks = {
|
||||
# TODO: migrate to cargo-audit
|
||||
# clipboard-substitutor-audit
|
||||
inherit clipboard-substitutor clipboard-substitutor-clippy
|
||||
clipboard-substitutor-fmt clipboard-substitutor-nextest;
|
||||
inherit
|
||||
clipboard-substitutor
|
||||
clipboard-substitutor-clippy
|
||||
clipboard-substitutor-fmt
|
||||
clipboard-substitutor-nextest
|
||||
;
|
||||
};
|
||||
|
||||
packages.default = clipboard-substitutor;
|
||||
|
|
12
shell.nix
12
shell.nix
|
@ -1,6 +1,8 @@
|
|||
(import (let lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
||||
in fetchTarball {
|
||||
url =
|
||||
"https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
|
||||
(import (let
|
||||
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
||||
in
|
||||
fetchTarball {
|
||||
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
|
||||
sha256 = lock.nodes.flake-compat.locked.narHash;
|
||||
}) { src = ./.; }).shellNix
|
||||
}) {src = ./.;})
|
||||
.shellNix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue