blob: 20dd18d7dd173e9436b55dd93587e871e046a5ed (
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
{ pkgs, lib, myLib }:
with pkgs;
let
nix = pkgs.nix.overrideAttrs (old: {
patches = old.patches or [] ++ [
(pkgs.fetchpatch {
url = "https://github.com/NixOS/nix/commit/486872150638d56483c2bc429ba9e137d9974ee8.patch";
sha256 = "0g0bp7gw6aqrscxkfmg6ykw91vm7b602h2dwbl53ycsa92bqfayq";
}) ];
});
addPythonRuntimeDeps = drv: deps: drv.overrideDerivation (old: {
propagatedNativeBuildInputs = old.propagatedNativeBuildInputs ++ deps;
});
# containered = name: packages: users: { ... }:
# {
# containers."${name}" = {
# config = {
# environment.systemPackages = packages;
# users.users = users;
# services.sshd.enable = true;
# };
# privateNetwork = true;
# localAddress = "127.0.0.2";
# };
# nixpkgs.config.allowUnfree = true;
# };
# pkgs
taffybar = pkgs.taffybar.override {
ghcWithPackages = (pkgs.haskellPackages.override {
overrides = _: super: {
taffybar = super.taffybar.overrideDerivation (old: {
name = old.name + "foo";
patches = (old.patches or []) ++ [ ./patches/taffybar.patch ];
postPatch = old.postPathPhase or "" + ''
patch -R ${./patches/taffybar-color.patch}
'';
});
};
}).ghcWithPackages;
};
mpv = pkgs.mpv-with-scripts.override {
scripts = [ pkgs.mpvScripts.convert ];
};
beets = pkgs.beets.override { enableAlternatives = true; };
# git-annex = hplts.git-annex.overrideDerivation (old: {
# buildInputs = old.buildInputs ++ [ pkgs.makeWrapper ];
# postFixup = ''
# wrapProgram $out/bin/git-annex --prefix PATH ":" "${getBin pkgs.lsof}/bin";
# '';
# });
poezio = pkgs.python34Packages.poezio;
vim = vim_configurable;
fast-init = pkgs.haskellPackages.callPackage (import "${(pkgs.fetchFromGitHub {
owner = "Profpatsch";
repo = "fast-init";
# TODO fix version
rev = "master";
sha256 = "03006xzs250knzcyr6j564kn9jf2a6cp3mxkpqsqmmyp6v28w90z";
})}/overrides.nix") {};
xmpp-client = pkgs.callPackage (import ./xmpp-client.nix myLib.philip.home "irc/xmppOla.wtf") { inherit (pkgs) xmpp-client; };
# searx = pkgs.searx.overrideAttrs (old: {
# propagatedBuildInputs = old.propagatedBuildInputs ++ [ pythonPackages.pyxdg ];
# patches = old.patches or [] ++ [
# ./patches/searx-secret-key.patch
# ./patches/searx-rm-soundcloud.patch
# ];
# # xdg.BaseDirectory.save_cache_path() will try to create leading dirs, but
# # within the builder we don't have a writable home directory.
# preCheck = (old.preCheck or "") + ''
# export XDG_CACHE_HOME="$TMPDIR/cache"
# '';
# });
# A ghci with some sane default packages in scope, & hoogle
saneGhci = haskellPackages.ghcWithHoogle (h: with h; [ protolude pretty-show ]);
pyrnotify =
let src = pkgs.fetchFromGitHub {
owner = "arnottcr";
repo = "weechat-pyrnotify";
rev = "5063ba19b5ba7ba3d4ecb2a76ad9e4b7bf89964b";
sha256 = "0r07glz7hkmcnp2vl4dy24i9vfsa9shm7k4q0jb47881z0y2dm2p";
};
notify-send = "${pkgs.libnotify.overrideAttrs (old: {
patches = old.patches or [] ++ [ ./patches/libnotify.patch ];
})}/bin/notify-send";
in pkgs.runCommand "pyrnotify.py" {} ''
substitute "${src}/pyrnotify.py" $out \
--replace 'notify-send' '${notify-send}'
'';
# wrapper for execlineb that doesn’t need the execline commands
# in PATH to work (making them appear like “builtins”)
execlineb-with-builtins =
let eldir = "${pkgs.execline}/bin";
in pkgs.writeScriptBin "execlineb" ''
#!${eldir}/execlineb -s0
${eldir}/importas oldpath PATH
env PATH=${eldir}:''${oldpath} ${eldir}/execlineb $@
'';
in
{ inherit
nix
taffybar
mpv
beets
poezio
vim
fast-init
xmpp-client
saneGhci
/*searx*/
pyrnotify
execlineb-with-builtins
;
}
|