blob: 109de8ce33c70ff097896dd3b896bd343243e87d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
{ depot, pkgs, lib, ... }:
let
bins = depot.nix.getBins pkgs.findutils [ "find" ];
in
depot.nix.readTree.drvTargets {
findia = depot.nix.writeExecline "findia"
{
readNArgs = 1;
# TODO: comment out, thanks to sterni blocking the runExecline change
# meta.description = ''
# Find case-insensitive anywhere (globbing)
# Usage: findia <pattern> <more find(1) arguments>
# '';
} [
bins.find
"-iname"
"*\${1}*"
"$@"
];
findial = depot.nix.writeExecline "findial"
{
readNArgs = 1;
# TODO: comment out, thanks to sterni blocking the runExecline change
# meta.description = ''
# Find case-insensitive anywhere (globbing), follow symlinks";
# Usage: findial <pattern> <more find(1) arguments>
# '';
} [
bins.find
"-L"
"-iname"
"*\${1}*"
"$@"
];
findian = depot.nix.writeExecline "findian"
{
readNArgs = 2;
# TODO: comment out, thanks to sterni blocking the runExecline change
# meta.description = ''
# Find case-insensitive anywhere (globbing) in directory
# Usage: findian <directory> <pattern> <more find(1) arguments>
# '';
} [
bins.find
"$1"
"-iname"
"*\${2}*"
"$@"
];
findiap = depot.nix.writeExecline "findiap"
{
readNArgs = 2;
# TODO: comment out, thanks to sterni blocking the runExecline change
# meta.description = ''
# Find case-insensitive anywhere (globbing) in directory, the pattern allows for paths.
# Usage: findiap <directory> <pattern> <more find(1) arguments>
# '';
} [
bins.find
"$1"
"-ipath"
"*\${2}*"
"$@"
];
bell = depot.nix.writeExecline "bell" { } [
"if"
[
"pactl"
"upload-sample"
"${pkgs.sound-theme-freedesktop}/share/sounds/freedesktop/stereo/complete.oga"
"bell-window-system"
]
"pactl"
"play-sample"
"bell-window-system"
];
}
|