nix: use nixfmt-rfc-style

This commit is contained in:
2025-12-05 15:48:11 +00:00
parent ef681a3ba8
commit 7c56f42779
17 changed files with 299 additions and 177 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
# TODO: auto import everything
{pkgs, ...}: {
qrclip = pkgs.callPackage ./qrclip {};
{ pkgs, ... }:
{
qrclip = pkgs.callPackage ./qrclip { };
}
+10 -7
View File
@@ -2,11 +2,14 @@
pkgs,
lib,
stdenv,
}: let
zbar = pkgs.zbar.override {enableVideo = false;};
}:
let
zbar = pkgs.zbar.override { enableVideo = false; };
in
(pkgs.writeShellScriptBin "qrclip" ''
set -eo pipefail
${pkgs.pngpaste}/bin/pngpaste - | ${zbar}/bin/zbarimg --raw -q1 -
'')
// {meta.platforms = lib.platforms.darwin;}
(pkgs.writeShellScriptBin "qrclip" ''
set -eo pipefail
${pkgs.pngpaste}/bin/pngpaste - | ${zbar}/bin/zbarimg --raw -q1 -
'')
// {
meta.platforms = lib.platforms.darwin;
}