Reformat nix source file using nixfmt

This commit is contained in:
ulic-youthlic 2025-07-13 06:04:55 +08:00
parent 2e4a532958
commit 9201969c1b
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
220 changed files with 3169 additions and 2487 deletions

View file

@ -8,34 +8,37 @@
gnugrep,
lib,
makeWrapper,
}: let
}:
let
inherit (srcs.cliphist) src date version;
in
cliphist.overrideAttrs (_final: prev: {
cliphist.overrideAttrs (
_final: prev: {
inherit src;
version =
if prev.version != "0.6.1"
then
if prev.version != "0.6.1" then
throw ''
Please remove <pkgs/cliphist.nix>
''
else "0-unstable-${date}-git${version}";
else
"0-unstable-${date}-git${version}";
vendorHash = "sha256-No8d9ztepBO+fgF2XkEf/tyCPDAD57rBkzA8iVyNUmw=";
buildInputs =
(prev.buildInputs or [])
++ [
makeWrapper
];
buildInputs = (prev.buildInputs or [ ]) ++ [
makeWrapper
];
postInstall = ''
cp -t $out/bin/ $src/contrib/*
rm $out/bin/cliphist.service
wrapProgram $out/bin/cliphist-fuzzel-img \
--prefix PATH : ${lib.makeBinPath [
imagemagick
wl-clipboard
fuzzel
gawk
gnugrep
]}
--prefix PATH : ${
lib.makeBinPath [
imagemagick
wl-clipboard
fuzzel
gawk
gnugrep
]
}
'';
})
}
)