diff options
27 files changed, 224 insertions, 204 deletions
diff --git a/default.nix b/default.nix index ae3b2b7..1bac63e 100644 --- a/default.nix +++ b/default.nix | |||
@@ -1,178 +1,59 @@ | |||
1 | with import <nixpkgs> {}; | 1 | with import <nixpkgs> { overlays = builtins.attrValues (import ./overlays); }; |
2 | with import ./libs.nix { nixpkgs = import <nixpkgs> {}; }; | 2 | with mylibs; |
3 | let | 3 | # https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh |
4 | mypkgs = {}; | 4 | # https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks |
5 | 5 | { | |
6 | mypkgs.taskwarrior = taskwarrior.overrideAttrs (old: rec { | 6 | boinctui = callPackage ./pkgs/boinctui {}; |
7 | postInstall = ''${old.postInstall} | 7 | cnagios = callPackage ./pkgs/cnagios { inherit fetchedGithub; }; |
8 | mkdir -p "$out/share/vim/vimfiles/ftdetect" | 8 | duply = callPackage ./pkgs/duply {}; |
9 | mkdir -p "$out/share/vim/vimfiles/syntax" | 9 | flrn = callPackage ./pkgs/flrn { |
10 | ln -s "../../../../share/doc/task/scripts/vim/ftdetect/task.vim" "$out/share/vim/vimfiles/ftdetect/" | 10 | slang = callPackage ./pkgs/slang_1 {}; |
11 | ln -s "../../../../share/doc/task/scripts/vim/syntax/taskrc.vim" "$out/share/vim/vimfiles/syntax/" | 11 | inherit fetchedGithub; |
12 | ln -s "../../../../share/doc/task/scripts/vim/syntax/taskdata.vim" "$out/share/vim/vimfiles/syntax/" | ||
13 | ln -s "../../../../share/doc/task/scripts/vim/syntax/taskedit.vim" "$out/share/vim/vimfiles/syntax/" | ||
14 | ''; | ||
15 | }); | ||
16 | |||
17 | mypkgs.vit = (vit.override { taskwarrior = mypkgs.taskwarrior; }).overrideAttrs (old: | ||
18 | fetchedGithub ./fetched/vit.json // { | ||
19 | buildInputs = old.buildInputs ++ [perlPackages.TryTiny perlPackages.TextCharWidth]; | ||
20 | } | ||
21 | ); | ||
22 | |||
23 | mypkgs.weboob = (pythonPackages.weboob.overridePythonAttrs { | ||
24 | setupPyBuildFlags = [ "--no-qt" "--xdg" ]; | ||
25 | }).overrideAttrs (old: rec { | ||
26 | version = "1.5"; | ||
27 | src = fetchurl { | ||
28 | url = "https://git.weboob.org/weboob/weboob/-/archive/${version}/${old.pname}-${version}.tar.gz"; | ||
29 | sha256 = "0l6q5nm5g0zn6gmf809059kddrbds27wgygxsfkqja9blks5vq7z"; | ||
30 | }; | ||
31 | postInstall = ''${old.postInstall or ""} | ||
32 | mkdir -p $out/share/bash-completion/completions/ | ||
33 | cp tools/weboob_bash_completion $out/share/bash-completion/completions/weboob | ||
34 | ''; | ||
35 | }); | ||
36 | |||
37 | mypkgs.slrn = slrn.overrideAttrs (old: rec { | ||
38 | version = "1.0.3a"; | ||
39 | name = "slrn-${version}"; | ||
40 | src = fetchurl { | ||
41 | url = "http://www.jedsoft.org/releases/slrn/slrn-${version}.tar.bz2"; | ||
42 | sha256 = "1b1d9iikr60w0vq86y9a0l4gjl0jxhdznlrdp3r405i097as9a1v"; | ||
43 | }; | 12 | }; |
44 | configureFlags = old.configureFlags ++ [ "--with-slrnpull" ]; | 13 | genius = callPackage ./pkgs/genius {}; |
45 | }); | 14 | mtop = callPackage ./pkgs/mtop {}; |
46 | 15 | muttprint = callPackage ./pkgs/muttprint {}; | |
47 | mypkgs.ldapvi = ldapvi.overrideAttrs (old: fetchedGit ./fetched/ldapvi.json); | 16 | mutt-ics = callPackage ./pkgs/mutt-ics { inherit fetchedGithub; }; |
48 | 17 | nagios-cli = callPackage ./pkgs/nagios-cli { inherit fetchedGithub; }; | |
49 | nixos = import ./nixos_tools.nix {}; | 18 | #nagnu = callPackage ./pkgs/nagnu { inherit fetchedGithub; }; |
50 | 19 | note = callPackage ./pkgs/note {}; | |
51 | mypkgs.pass = (pass.withExtensions (exts: [ exts.pass-otp ])).overrideAttrs (old: | 20 | notmuch-python2 = callPackage ./pkgs/notmuch/notmuch-python { pythonPackages = python2Packages; }; |
52 | fetchedGit ./fetched/pass.json // { | 21 | notmuch-python3 = callPackage ./pkgs/notmuch/notmuch-python { pythonPackages = python3Packages; }; |
53 | patches = old.patches ++ [ ./patches/pass-fix-pass-init.patch ]; | 22 | notmuch-vim = callPackage ./pkgs/notmuch/notmuch-vim {}; |
54 | } | 23 | pg_activity = callPackage ./pkgs/pg_activity { inherit fetchedGithub; }; |
55 | ); | 24 | pgloader = callPackage ./pkgs/pgloader { inherit fetchedGithub; }; |
56 | 25 | telegram-cli = callPackage ./pkgs/telegram-cli { inherit fetchedGithub; }; | |
57 | mypkgs.profanity = (profanity.override { | 26 | telegram-history-dump = callPackage ./pkgs/telegram-history-dump { inherit fetchedGithub; }; |
58 | notifySupport = true; | 27 | telegramircd = callPackage ./pkgs/telegramircd { |
59 | inherit libnotify gpgme gdk_pixbuf; | 28 | telethon = callPackage ./pkgs/telethon_sync {}; |
60 | python = python3; | 29 | inherit fetchedGithub; |
61 | }).overrideAttrs (old: rec { | ||
62 | configureFlags = old.configureFlags ++ [ "--enable-plugins" ]; | ||
63 | }); | ||
64 | |||
65 | mypkgs.weechat = weechat.override { | ||
66 | configure = { availablePlugins, ... }: { | ||
67 | plugins = with availablePlugins; [ | ||
68 | # Make sure websocket_client is not 0.55.0, it provokes | ||
69 | # regular crashes | ||
70 | (python.withPackages (ps: with ps; [websocket_client emoji])) | ||
71 | perl | ||
72 | ruby | ||
73 | ]; | ||
74 | }; | 30 | }; |
75 | }; | 31 | terminal-velocity = callPackage ./pkgs/terminal-velocity {}; |
76 | 32 | tiv = callPackage ./pkgs/tiv {}; | |
77 | mypkgs.boinctui = callPackage ./pkgs/boinctui {}; | 33 | unicode = callPackage ./pkgs/unicode {}; |
78 | mypkgs.cnagios = callPackage ./pkgs/cnagios { inherit fetchedGithub; }; | 34 | |
79 | mypkgs.duply = callPackage ./pkgs/duply {}; | 35 | cardano = callPackage ./pkgs/crypto/cardano { inherit fetchedGithub; }; |
80 | mypkgs.flrn = callPackage ./pkgs/flrn { | 36 | iota-cli-app = callPackage ./pkgs/crypto/iota-cli-app { inherit fetchedGithub; }; |
81 | slang = callPackage ./pkgs/slang_1 {}; | 37 | sia = callPackage ./pkgs/crypto/sia {}; |
82 | inherit fetchedGithub; | 38 | } // { # overlays |
83 | }; | 39 | inherit weboob; |
84 | mypkgs.genius = callPackage ./pkgs/genius {}; | 40 | inherit taskwarrior; |
85 | mypkgs.mtop = callPackage ./pkgs/mtop {}; | 41 | inherit slrn; |
86 | mypkgs.muttprint = callPackage ./pkgs/muttprint {}; | 42 | inherit sc-im; |
87 | mypkgs.mutt-ics = callPackage ./pkgs/mutt-ics { inherit fetchedGithub; }; | 43 | inherit lesspipe; |
88 | mypkgs.nagios-cli = callPackage ./pkgs/nagios-cli { inherit fetchedGithub; }; | 44 | inherit neomutt; |
89 | #mypkgs.nagnu = callPackage ./pkgs/nagnu { inherit fetchedGithub; }; | 45 | inherit weechat; |
90 | mypkgs.note = callPackage ./pkgs/note {}; | 46 | inherit goaccess; |
91 | mypkgs.notmuch-python2 = callPackage ./pkgs/notmuch/notmuch-python { pythonPackages = python2Packages; }; | 47 | inherit profanity; |
92 | mypkgs.notmuch-python3 = callPackage ./pkgs/notmuch/notmuch-python { pythonPackages = python3Packages; }; | 48 | inherit nixops; |
93 | mypkgs.notmuch-vim = callPackage ./pkgs/notmuch/notmuch-vim {}; | 49 | inherit dwm; |
94 | mypkgs.pg_activity = callPackage ./pkgs/pg_activity { inherit fetchedGithub; }; | 50 | inherit vit; |
95 | mypkgs.pgloader = callPackage ./pkgs/pgloader { inherit fetchedGithub; }; | 51 | inherit pass; |
96 | mypkgs.telegram-cli = callPackage ./pkgs/telegram-cli { inherit fetchedGithub; }; | 52 | inherit elinks; |
97 | mypkgs.telegram-history-dump = callPackage ./pkgs/telegram-history-dump { inherit fetchedGithub; }; | 53 | inherit pelican; |
98 | mypkgs.telegramircd = callPackage ./pkgs/telegramircd { | 54 | inherit ldapvi; |
99 | telethon = callPackage ./pkgs/telethon_sync {}; | 55 | inherit (mylibs.yarn2nixPackage) yarn2nix; |
100 | inherit fetchedGithub; | 56 | } // { |
101 | }; | ||
102 | mypkgs.terminal-velocity = callPackage ./pkgs/terminal-velocity {}; | ||
103 | mypkgs.tiv = callPackage ./pkgs/tiv {}; | ||
104 | mypkgs.unicode = callPackage ./pkgs/unicode {}; | ||
105 | |||
106 | mypkgs.cardano = callPackage ./pkgs/crypto/cardano { inherit fetchedGithub; }; | ||
107 | mypkgs.iota-cli-app = callPackage ./pkgs/crypto/iota-cli-app { inherit fetchedGithub; }; | ||
108 | mypkgs.sia = callPackage ./pkgs/crypto/sia {}; | ||
109 | |||
110 | mypkgs.pelican = python3Packages.pelican.overrideAttrs(old: fetchedGithub ./fetched/pelican.json // rec { | ||
111 | propagatedBuildInputs = old.propagatedBuildInputs ++ [ python3Packages.pyyaml ]; | ||
112 | }); | ||
113 | |||
114 | mypkgs.elinks = elinks.overrideAttrs (old: | ||
115 | fetchedGithub ./fetched/elinks.json // rec { | ||
116 | preConfigure = ''sh autogen.sh''; | ||
117 | buildInputs = old.buildInputs ++ [ gettext automake autoconf ]; | ||
118 | configureFlags = [ | ||
119 | "--disable-smb" "--without-x" "--enable-cgi" | ||
120 | "--enable-leds" "--enable-256-colors" | ||
121 | "--enable-html-highlight" "--with-zlib" | ||
122 | ]; | ||
123 | patches = []; | ||
124 | } | ||
125 | ); | ||
126 | |||
127 | mypkgs.neomutt = neomutt.overrideAttrs (old: | ||
128 | rec { | ||
129 | buildInputs = old.buildInputs ++ [ gdbm ]; | ||
130 | configureFlags = old.configureFlags ++ [ "--gdbm" ]; | ||
131 | } | ||
132 | ); | ||
133 | |||
134 | mypkgs.goaccess = goaccess.overrideAttrs(old: rec { | ||
135 | name = "goaccess-${version}"; | ||
136 | version = "1.3"; | ||
137 | src = fetchurl { | ||
138 | url = "https://tar.goaccess.io/${name}.tar.gz"; | ||
139 | sha256 = "16vv3pj7pbraq173wlxa89jjsd279004j4kgzlrsk1dz4if5qxwc"; | ||
140 | }; | ||
141 | configureFlags = old.configureFlags ++ [ "--enable-tcb=btree" ]; | ||
142 | buildInputs = old.buildInputs ++ [ tokyocabinet bzip2 ]; | ||
143 | }); | ||
144 | |||
145 | mypkgs.yarn2nix = yarn2nixPackage.yarn2nix; | ||
146 | |||
147 | |||
148 | mypkgs.sc-im = sc-im.overrideAttrs (old: { | ||
149 | buildPhase = '' | ||
150 | cd src | ||
151 | sed -i Makefile -e 's@\...name.info@.local/state/$(name)info@' | ||
152 | cd .. | ||
153 | '' + old.buildPhase; | ||
154 | }); | ||
155 | |||
156 | mypkgs.lesspipe = lesspipe.overrideAttrs(old: { | ||
157 | configureFlags = (old.configureFlags or []) ++ [ "--yes" ]; | ||
158 | }); | ||
159 | |||
160 | |||
161 | mypkgs.dwm = dwm.overrideAttrs(old: rec { | ||
162 | postPatch = '' | ||
163 | cp ${./patches/dwm_config.h} ./config.h | ||
164 | ''; | ||
165 | }); | ||
166 | |||
167 | mypkgs.nixops = nixops.overrideAttrs (old: { | ||
168 | preConfigure = (old.preConfigure or "") + '' | ||
169 | sed -i -e "/'keyFile'/s/'path'/'string'/" nixops/backends/__init__.py | ||
170 | ''; | ||
171 | }); | ||
172 | # https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh | ||
173 | # https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks | ||
174 | in | ||
175 | mypkgs // { | ||
176 | inherit nix-prefetch-scripts; | 57 | inherit nix-prefetch-scripts; |
177 | inherit nix-generate-from-cpan; | 58 | inherit nix-generate-from-cpan; |
178 | inherit timewarrior; | 59 | inherit timewarrior; |
@@ -222,7 +103,6 @@ in | |||
222 | inherit lzo unzip bzip2 p7zip xz; | 103 | inherit lzo unzip bzip2 p7zip xz; |
223 | # unrar is unfree | 104 | # unrar is unfree |
224 | inherit tig; | 105 | inherit tig; |
225 | #inherit nixos; | ||
226 | inherit emacs26-nox; | 106 | inherit emacs26-nox; |
227 | inherit highlight sourceHighlight; | 107 | inherit highlight sourceHighlight; |
228 | pygmentize = python3Packages.pygments; | 108 | pygmentize = python3Packages.pygments; |
diff --git a/fetched/ledger.json b/fetched/ledger.json deleted file mode 100644 index 6ea613b..0000000 --- a/fetched/ledger.json +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | { | ||
2 | "tag": "7567fb7-next", | ||
3 | "meta": { | ||
4 | "name": "ledger", | ||
5 | "url": "https://github.com/ledger/ledger", | ||
6 | "branch": "next" | ||
7 | }, | ||
8 | "github": { | ||
9 | "owner": "ledger", | ||
10 | "repo": "ledger", | ||
11 | "rev": "7567fb7595c9937088abec6caaf7b59f8e2e772a", | ||
12 | "sha256": "07482bvd0mnvaad116cjlmg3ls6bg0ksy23gc99lmyz35nbf25v1", | ||
13 | "fetchSubmodules": true | ||
14 | } | ||
15 | } | ||
diff --git a/fetched/stgit.json b/fetched/stgit.json deleted file mode 100644 index 4b9575e..0000000 --- a/fetched/stgit.json +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | { | ||
2 | "tag": "v0.19", | ||
3 | "meta": { | ||
4 | "name": "stgit", | ||
5 | "url": "https://github.com/ctmarinas/stgit", | ||
6 | "branch": "refs/tags/v0.19" | ||
7 | }, | ||
8 | "github": { | ||
9 | "owner": "ctmarinas", | ||
10 | "repo": "stgit", | ||
11 | "rev": "ac22e13b123f5aff693926c995bb29cf7c114c2b", | ||
12 | "sha256": "1dzl6cnyzwbzysp82x7w1yc03g25kwan3h0zpnzhhfhg6c904sis", | ||
13 | "fetchSubmodules": true | ||
14 | } | ||
15 | } | ||
diff --git a/overlays/default.nix b/overlays/default.nix new file mode 100644 index 0000000..a2d9927 --- /dev/null +++ b/overlays/default.nix | |||
@@ -0,0 +1,20 @@ | |||
1 | { | ||
2 | mylibs = self: super: { mylibs = import ../libs.nix { nixpkgs = self; }; }; | ||
3 | |||
4 | dwm = import ./dwm; | ||
5 | elinks = import ./elinks; | ||
6 | goaccess = import ./goaccess; | ||
7 | ldapvi = import ./ldapvi; | ||
8 | lesspipe = import ./lesspipe; | ||
9 | neomutt = import ./neomutt; | ||
10 | nixops = import ./nixops; | ||
11 | pass = import ./pass; | ||
12 | pelican = import ./pelican; | ||
13 | profanity = import ./profanity; | ||
14 | sc-im = import ./sc-im; | ||
15 | slrn = import ./slrn; | ||
16 | taskwarrior = import ./taskwarrior; | ||
17 | vit = import ./vit; | ||
18 | weboob = import ./weboob; | ||
19 | weechat = import ./weechat; | ||
20 | } | ||
diff --git a/overlays/dwm/default.nix b/overlays/dwm/default.nix new file mode 100644 index 0000000..96ed3ff --- /dev/null +++ b/overlays/dwm/default.nix | |||
@@ -0,0 +1,7 @@ | |||
1 | self: super: { | ||
2 | dwm = super.dwm.overrideAttrs(old: rec { | ||
3 | postPatch = '' | ||
4 | cp ${./dwm_config.h} ./config.h | ||
5 | ''; | ||
6 | }); | ||
7 | } | ||
diff --git a/patches/dwm_config.h b/overlays/dwm/dwm_config.h index b1587e8..b1587e8 100644 --- a/patches/dwm_config.h +++ b/overlays/dwm/dwm_config.h | |||
diff --git a/overlays/elinks/default.nix b/overlays/elinks/default.nix new file mode 100644 index 0000000..1744dc0 --- /dev/null +++ b/overlays/elinks/default.nix | |||
@@ -0,0 +1,14 @@ | |||
1 | self: super: { | ||
2 | elinks = super.elinks.overrideAttrs (old: | ||
3 | self.mylibs.fetchedGithub ./elinks.json // rec { | ||
4 | preConfigure = ''sh autogen.sh''; | ||
5 | buildInputs = old.buildInputs ++ (with self; [ gettext automake autoconf ]); | ||
6 | configureFlags = [ | ||
7 | "--disable-smb" "--without-x" "--enable-cgi" | ||
8 | "--enable-leds" "--enable-256-colors" | ||
9 | "--enable-html-highlight" "--with-zlib" | ||
10 | ]; | ||
11 | patches = []; | ||
12 | } | ||
13 | ); | ||
14 | } | ||
diff --git a/fetched/elinks.json b/overlays/elinks/elinks.json index ea13b1f..ea13b1f 100644 --- a/fetched/elinks.json +++ b/overlays/elinks/elinks.json | |||
diff --git a/overlays/goaccess/default.nix b/overlays/goaccess/default.nix new file mode 100644 index 0000000..12b28f3 --- /dev/null +++ b/overlays/goaccess/default.nix | |||
@@ -0,0 +1,13 @@ | |||
1 | self: super: { | ||
2 | goaccess = super.goaccess.overrideAttrs(old: rec { | ||
3 | name = "goaccess-${version}"; | ||
4 | version = "1.3"; | ||
5 | src = self.fetchurl { | ||
6 | url = "https://tar.goaccess.io/${name}.tar.gz"; | ||
7 | sha256 = "16vv3pj7pbraq173wlxa89jjsd279004j4kgzlrsk1dz4if5qxwc"; | ||
8 | }; | ||
9 | configureFlags = old.configureFlags ++ [ "--enable-tcb=btree" ]; | ||
10 | buildInputs = old.buildInputs ++ [ self.tokyocabinet self.bzip2 ]; | ||
11 | }); | ||
12 | |||
13 | } | ||
diff --git a/overlays/ldapvi/default.nix b/overlays/ldapvi/default.nix new file mode 100644 index 0000000..030e676 --- /dev/null +++ b/overlays/ldapvi/default.nix | |||
@@ -0,0 +1,3 @@ | |||
1 | self: super: { | ||
2 | ldapvi = super.ldapvi.overrideAttrs (old: self.mylibs.fetchedGit ./ldapvi.json); | ||
3 | } | ||
diff --git a/fetched/ldapvi.json b/overlays/ldapvi/ldapvi.json index ceaff71..ceaff71 100644 --- a/fetched/ldapvi.json +++ b/overlays/ldapvi/ldapvi.json | |||
diff --git a/overlays/lesspipe/default.nix b/overlays/lesspipe/default.nix new file mode 100644 index 0000000..e53feae --- /dev/null +++ b/overlays/lesspipe/default.nix | |||
@@ -0,0 +1,5 @@ | |||
1 | self: super: { | ||
2 | lesspipe = super.lesspipe.overrideAttrs(old: { | ||
3 | configureFlags = (old.configureFlags or []) ++ [ "--yes" ]; | ||
4 | }); | ||
5 | } | ||
diff --git a/overlays/neomutt/default.nix b/overlays/neomutt/default.nix new file mode 100644 index 0000000..c8578c9 --- /dev/null +++ b/overlays/neomutt/default.nix | |||
@@ -0,0 +1,8 @@ | |||
1 | self: super: { | ||
2 | neomutt = super.neomutt.overrideAttrs (old: | ||
3 | { | ||
4 | buildInputs = old.buildInputs ++ [ self.gdbm ]; | ||
5 | configureFlags = old.configureFlags ++ [ "--gdbm" ]; | ||
6 | } | ||
7 | ); | ||
8 | } | ||
diff --git a/overlays/nixops/default.nix b/overlays/nixops/default.nix new file mode 100644 index 0000000..eb29ecd --- /dev/null +++ b/overlays/nixops/default.nix | |||
@@ -0,0 +1,7 @@ | |||
1 | self: super: { | ||
2 | nixops = super.nixops.overrideAttrs (old: { | ||
3 | preConfigure = (old.preConfigure or "") + '' | ||
4 | sed -i -e "/'keyFile'/s/'path'/'string'/" nixops/backends/__init__.py | ||
5 | ''; | ||
6 | }); | ||
7 | } | ||
diff --git a/overlays/pass/default.nix b/overlays/pass/default.nix new file mode 100644 index 0000000..df42cf1 --- /dev/null +++ b/overlays/pass/default.nix | |||
@@ -0,0 +1,8 @@ | |||
1 | self: super: { | ||
2 | pass = (super.pass.withExtensions (exts: [ exts.pass-otp ])).overrideAttrs (old: | ||
3 | self.mylibs.fetchedGit ./pass.json // { | ||
4 | patches = old.patches ++ [ ./pass-fix-pass-init.patch ]; | ||
5 | } | ||
6 | ); | ||
7 | |||
8 | } | ||
diff --git a/patches/pass-fix-pass-init.patch b/overlays/pass/pass-fix-pass-init.patch index 10a76c1..10a76c1 100644 --- a/patches/pass-fix-pass-init.patch +++ b/overlays/pass/pass-fix-pass-init.patch | |||
diff --git a/fetched/pass.json b/overlays/pass/pass.json index a4638c1..a4638c1 100644 --- a/fetched/pass.json +++ b/overlays/pass/pass.json | |||
diff --git a/overlays/pelican/default.nix b/overlays/pelican/default.nix new file mode 100644 index 0000000..5f60b8f --- /dev/null +++ b/overlays/pelican/default.nix | |||
@@ -0,0 +1,6 @@ | |||
1 | self: super: { | ||
2 | pelican = with self.python3Packages; | ||
3 | pelican.overrideAttrs(old: self.mylibs.fetchedGithub ./pelican.json // { | ||
4 | propagatedBuildInputs = old.propagatedBuildInputs ++ [ pyyaml ]; | ||
5 | }); | ||
6 | } | ||
diff --git a/fetched/pelican.json b/overlays/pelican/pelican.json index d8f4425..d8f4425 100644 --- a/fetched/pelican.json +++ b/overlays/pelican/pelican.json | |||
diff --git a/overlays/profanity/default.nix b/overlays/profanity/default.nix new file mode 100644 index 0000000..33861f1 --- /dev/null +++ b/overlays/profanity/default.nix | |||
@@ -0,0 +1,9 @@ | |||
1 | self: super: { | ||
2 | profanity = (super.profanity.override { | ||
3 | notifySupport = true; | ||
4 | inherit (self) libnotify gpgme gdk_pixbuf; | ||
5 | python = self.python3; | ||
6 | }).overrideAttrs (old: rec { | ||
7 | configureFlags = old.configureFlags ++ [ "--enable-plugins" ]; | ||
8 | }); | ||
9 | } | ||
diff --git a/overlays/sc-im/default.nix b/overlays/sc-im/default.nix new file mode 100644 index 0000000..f728655 --- /dev/null +++ b/overlays/sc-im/default.nix | |||
@@ -0,0 +1,9 @@ | |||
1 | self: super: { | ||
2 | sc-im = super.sc-im.overrideAttrs (old: { | ||
3 | buildPhase = '' | ||
4 | cd src | ||
5 | sed -i Makefile -e 's@\...name.info@.local/state/$(name)info@' | ||
6 | cd .. | ||
7 | '' + old.buildPhase; | ||
8 | }); | ||
9 | } | ||
diff --git a/overlays/slrn/default.nix b/overlays/slrn/default.nix new file mode 100644 index 0000000..6caef55 --- /dev/null +++ b/overlays/slrn/default.nix | |||
@@ -0,0 +1,11 @@ | |||
1 | self: super: { | ||
2 | slrn = super.slrn.overrideAttrs (old: rec { | ||
3 | version = "1.0.3a"; | ||
4 | name = "slrn-${version}"; | ||
5 | src = self.fetchurl { | ||
6 | url = "http://www.jedsoft.org/releases/slrn/slrn-${version}.tar.bz2"; | ||
7 | sha256 = "1b1d9iikr60w0vq86y9a0l4gjl0jxhdznlrdp3r405i097as9a1v"; | ||
8 | }; | ||
9 | configureFlags = old.configureFlags ++ [ "--with-slrnpull" ]; | ||
10 | }); | ||
11 | } | ||
diff --git a/overlays/taskwarrior/default.nix b/overlays/taskwarrior/default.nix new file mode 100644 index 0000000..64ea690 --- /dev/null +++ b/overlays/taskwarrior/default.nix | |||
@@ -0,0 +1,13 @@ | |||
1 | self: super: | ||
2 | { | ||
3 | taskwarrior = super.taskwarrior.overrideAttrs (old: { | ||
4 | postInstall = ''${old.postInstall} | ||
5 | mkdir -p "$out/share/vim/vimfiles/ftdetect" | ||
6 | mkdir -p "$out/share/vim/vimfiles/syntax" | ||
7 | ln -s "../../../../share/doc/task/scripts/vim/ftdetect/task.vim" "$out/share/vim/vimfiles/ftdetect/" | ||
8 | ln -s "../../../../share/doc/task/scripts/vim/syntax/taskrc.vim" "$out/share/vim/vimfiles/syntax/" | ||
9 | ln -s "../../../../share/doc/task/scripts/vim/syntax/taskdata.vim" "$out/share/vim/vimfiles/syntax/" | ||
10 | ln -s "../../../../share/doc/task/scripts/vim/syntax/taskedit.vim" "$out/share/vim/vimfiles/syntax/" | ||
11 | ''; | ||
12 | }); | ||
13 | } | ||
diff --git a/overlays/vit/default.nix b/overlays/vit/default.nix new file mode 100644 index 0000000..4624284 --- /dev/null +++ b/overlays/vit/default.nix | |||
@@ -0,0 +1,8 @@ | |||
1 | self: super: | ||
2 | { | ||
3 | vit = (super.vit.override { inherit (self) taskwarrior; }).overrideAttrs (old: | ||
4 | self.mylibs.fetchedGithub ./vit.json // { | ||
5 | buildInputs = old.buildInputs ++ (with self.perlPackages; [ TryTiny TextCharWidth ]); | ||
6 | } | ||
7 | ); | ||
8 | } | ||
diff --git a/fetched/vit.json b/overlays/vit/vit.json index d062f68..d062f68 100644 --- a/fetched/vit.json +++ b/overlays/vit/vit.json | |||
diff --git a/overlays/weboob/default.nix b/overlays/weboob/default.nix new file mode 100644 index 0000000..d0a15a7 --- /dev/null +++ b/overlays/weboob/default.nix | |||
@@ -0,0 +1,15 @@ | |||
1 | self: super: { | ||
2 | weboob = (self.pythonPackages.weboob.overridePythonAttrs { | ||
3 | setupPyBuildFlags = [ "--no-qt" "--xdg" ]; | ||
4 | }).overrideAttrs (old: rec { | ||
5 | version = "1.5"; | ||
6 | src = self.fetchurl { | ||
7 | url = "https://git.weboob.org/weboob/weboob/-/archive/${version}/${old.pname}-${version}.tar.gz"; | ||
8 | sha256 = "0l6q5nm5g0zn6gmf809059kddrbds27wgygxsfkqja9blks5vq7z"; | ||
9 | }; | ||
10 | postInstall = ''${old.postInstall or ""} | ||
11 | mkdir -p $out/share/bash-completion/completions/ | ||
12 | cp tools/weboob_bash_completion $out/share/bash-completion/completions/weboob | ||
13 | ''; | ||
14 | }); | ||
15 | } | ||
diff --git a/overlays/weechat/default.nix b/overlays/weechat/default.nix new file mode 100644 index 0000000..07c6d89 --- /dev/null +++ b/overlays/weechat/default.nix | |||
@@ -0,0 +1,14 @@ | |||
1 | self: super: { | ||
2 | weechat = super.weechat.override { | ||
3 | configure = { availablePlugins, ... }: { | ||
4 | plugins = with self; with availablePlugins; [ | ||
5 | # Make sure websocket_client is not 0.55.0, it provokes | ||
6 | # regular crashes | ||
7 | (python.withPackages (ps: with ps; [websocket_client emoji])) | ||
8 | perl | ||
9 | ruby | ||
10 | ]; | ||
11 | }; | ||
12 | }; | ||
13 | |||
14 | } | ||