forked from justchokingaround/lobster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
72 lines (67 loc) · 1.34 KB
/
default.nix
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
{ coreutils,
curl,
fetchFromGitHub,
ffmpeg,
fzf,
gnugrep,
gnupatch,
gnused,
html-xml-utils,
lib,
makeWrapper,
mpv,
openssl,
stdenv,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "lobster";
version = "4.1.1";
src = ./.;
# src = fetchFromGitHub {
# owner = "justchokingaround";
# repo = "lobster";
# rev = "v${finalAttrs.version}";
# hash = "sha256-YBgZmdi3eIbXlhPzMNi6bGpX/vdxGNcvc1gMx98o354="; # 4.0.6
# };
nativeBuildInputs = [
coreutils # wc
curl
ffmpeg
fzf
gnugrep
gnupatch
gnused
html-xml-utils
makeWrapper
mpv
openssl
];
installPhase = ''
mkdir -p $out/bin
cp lobster.sh $out/bin/lobster
wrapProgram $out/bin/lobster \
--prefix PATH : ${lib.makeBinPath [
coreutils
curl
ffmpeg
fzf
gnugrep
gnupatch
gnused
html-xml-utils
mpv
openssl
]}
'';
passthru.tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
};
meta = with lib; {
description = "CLI to watch Movies/TV Shows from the terminal";
homepage = "https://github.com/justchokingaround/lobster";
license = licenses.gpl3;
maintainers = with maintainers; [ benediktbroich ];
platforms = platforms.unix;
};
})