-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.nix
More file actions
44 lines (38 loc) · 747 Bytes
/
Copy pathpackage.nix
File metadata and controls
44 lines (38 loc) · 747 Bytes
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
{
buildGoModule,
makeWrapper,
yt-dlp,
ffmpeg,
gifski,
lib,
...
}:
{
default = buildGoModule (finalAttrs: {
pname = "dis";
version = "11.3.0";
src = ./.;
vendorHash = "sha256-hjG/qjdU0y4Tgq9+PxRIxd1KXZEqn/u6t4O7TkE8JqU=";
ldflags = [
"-s"
"-w"
];
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram "$out/bin/dis" \
--prefix PATH : ${
lib.makeBinPath [
ffmpeg
yt-dlp
gifski
]
}
'';
meta = {
homepage = "https://github.com/FlameFlag/dis";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.FlameFlag ];
};
});
}