···
1
1
+
{ writeScriptBin
2
2
+
, bash
3
3
+
, coreutils
4
4
+
, grim
5
5
+
, imagemagick
6
6
+
, libnotify
7
7
+
, slurp
8
8
+
, wl-clipboard
9
9
+
, xdg-utils
10
10
+
, ...
11
11
+
}:
12
12
+
13
13
+
writeScriptBin "colorgrab" (builtins.replaceStrings
14
14
+
[
15
15
+
"#!/bin/sh"
16
16
+
"mkdir"
17
17
+
"printf"
18
18
+
"grim"
19
19
+
"slurp"
20
20
+
"convert"
21
21
+
"wl-copy"
22
22
+
"xdg-open"
23
23
+
"notify-send"
24
24
+
]
25
25
+
[
26
26
+
"#!${bash}/bin/sh"
27
27
+
"${coreutils}/bin/mkdir"
28
28
+
"${coreutils}/bin/printf"
29
29
+
"${grim}/bin/grim"
30
30
+
"${slurp}/bin/slurp"
31
31
+
"${imagemagick}/bin/convert"
32
32
+
"${wl-clipboard}/bin/wl-copy"
33
33
+
"${xdg-utils}/bin/xdg-open"
34
34
+
"${libnotify}/bin/notify-send"
35
35
+
]
36
36
+
(builtins.readFile ../scritps/colorgrab)
37
37
+
)
···
1
1
+
{ writeScriptBin
2
2
+
, bash
3
3
+
, coreutils
4
4
+
, imagemagick
5
5
+
, ...
6
6
+
}:
7
7
+
8
8
+
writeScriptBin "prefon" (builtins.replaceStrings
9
9
+
[
10
10
+
"#!/bin/sh"
11
11
+
"printf"
12
12
+
"convert"
13
13
+
"rm"
14
14
+
]
15
15
+
[
16
16
+
"#!${bash}/bin/sh"
17
17
+
"${coreutils}/bin/printf"
18
18
+
"${imagemagick}/bin/convert"
19
19
+
"${coreutils}/bin/rm"
20
20
+
]
21
21
+
(builtins.readFile ../scritps/prefon)
22
22
+
)
···
1
1
+
{ writeScriptBin
2
2
+
, bash
3
3
+
, coreutils
4
4
+
, ffmpeg
5
5
+
, grim
6
6
+
, pulseaudio
7
7
+
, slurp
8
8
+
, wf-recorder
9
9
+
, wl-clipboard
10
10
+
, ...
11
11
+
}:
12
12
+
13
13
+
writeScriptBin "scr" (builtins.replaceStrings
14
14
+
[
15
15
+
"#!/bin/sh"
16
16
+
"printf"
17
17
+
"mkdir"
18
18
+
"ffmpeg"
19
19
+
"grim"
20
20
+
"slurp"
21
21
+
"wl-copy"
22
22
+
"pactl"
23
23
+
"wf-recorder"
24
24
+
]
25
25
+
[
26
26
+
"#!${bash}/bin/sh"
27
27
+
"${coreutils}/bin/printf"
28
28
+
"${coreutils}/bin/mkdir"
29
29
+
"${ffmpeg}/bin/ffmpeg"
30
30
+
"${grim}/bin/grim"
31
31
+
"${slurp}/bin/slurp"
32
32
+
"${wl-clipboard}/bin/wl-copy"
33
33
+
"${pulseaudio}/bin/pactl"
34
34
+
"${wf-recorder}/bin/wf-recorder"
35
35
+
]
36
36
+
(builtins.readFile ../scritps/scr)
37
37
+
)
···
1
1
+
{ writeScriptBin
2
2
+
, bash
3
3
+
, coreutils
4
4
+
, gnused
5
5
+
, ...
6
6
+
}:
7
7
+
8
8
+
writeScriptBin "thm" (builtins.replaceStrings
9
9
+
[
10
10
+
"#!/bin/sh"
11
11
+
"printf"
12
12
+
"mkdir"
13
13
+
"mv"
14
14
+
"sed"
15
15
+
]
16
16
+
[
17
17
+
"#!${bash}/bin/sh"
18
18
+
"${coreutils}/bin/printf"
19
19
+
"${coreutils}/bin/mkdir"
20
20
+
"${coreutils}/bin/mv"
21
21
+
"${gnused}/bin/sed"
22
22
+
]
23
23
+
(builtins.readFile ../scritps/thm)
24
24
+
)
···
1
1
+
{
2
2
+
"nodes": {
3
3
+
"nixpkgs": {
4
4
+
"locked": {
5
5
+
"lastModified": 1704194953,
6
6
+
"narHash": "sha256-RtDKd8Mynhe5CFnVT8s0/0yqtWFMM9LmCzXv/YKxnq4=",
7
7
+
"owner": "NixOS",
8
8
+
"repo": "nixpkgs",
9
9
+
"rev": "bd645e8668ec6612439a9ee7e71f7eac4099d4f6",
10
10
+
"type": "github"
11
11
+
},
12
12
+
"original": {
13
13
+
"owner": "NixOS",
14
14
+
"ref": "nixos-unstable",
15
15
+
"repo": "nixpkgs",
16
16
+
"type": "github"
17
17
+
}
18
18
+
},
19
19
+
"root": {
20
20
+
"inputs": {
21
21
+
"nixpkgs": "nixpkgs"
22
22
+
}
23
23
+
}
24
24
+
},
25
25
+
"root": "root",
26
26
+
"version": 7
27
27
+
}
···
1
1
+
{
2
2
+
inputs = {
3
3
+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
4
4
+
};
5
5
+
6
6
+
outputs = { self, nixpkgs, ... }: {
7
7
+
overlays.default = final: prev: rec {
8
8
+
colorgrab = final.callPackage ./.nix/colorgrab.nix { };
9
9
+
prefon = final.callPackage ./.nix/prefon.nix { };
10
10
+
scr = final.callPackage ./.nix/scr.nix { };
11
11
+
thm = final.callPackage ./.nix/thm.nix { };
12
12
+
yemou-scripts = final.symlinkJoin {
13
13
+
name = "yemou-scripts";
14
14
+
paths = [ colorgrab prefon scr thm ];
15
15
+
};
16
16
+
};
17
17
+
18
18
+
packages."x86_64-linux" =
19
19
+
let
20
20
+
pkgs = import nixpkgs {
21
21
+
system = "x86_64-linux";
22
22
+
overlays = [ self.overlays.default ];
23
23
+
};
24
24
+
in
25
25
+
{
26
26
+
colorgrab = pkgs.colorgrab;
27
27
+
default = pkgs.yemou-scripts;
28
28
+
prefon = pkgs.prefon;
29
29
+
scr = pkgs.scr;
30
30
+
thm = pkgs.thm;
31
31
+
yemou-scripts = pkgs.yemou-scripts;
32
32
+
};
33
33
+
};
34
34
+
}