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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
|
{ inputs, ... }:
self: super:
let
unstable = inputs.nixpkgs-unstable.legacyPackages.${self.system};
crs-tools = self.callPackage ./crs-tools.nix {};
rustPlatform = self.makeRustPlatform {
cargo = self.rust-bin.stable.latest.minimal;
rustc = self.rust-bin.stable.latest.minimal;
};
radicle = import ./radicle.nix;
in
{
beamPackages = super.beam.packagesWith self.erlang;
elixir = self.beamPackages.elixir;
erlang = super.erlang_nox;
inherit (unstable) lean4;
git-annex-remote-remarkable2 = self.callPackage
({ rustPlatform, fetchgit, ... }:
rustPlatform.buildRustPackage rec {
name = "git-annex-remote-remarkable2";
src = fetchgit {
url = "https://stuebinm.eu/git/git-annex-remote-remarkable2";
rev = "refs/heads/main";
hash = "sha256-ZDoZFFADti3ZwLZqeP/F3BbW+Csuprw6+1LBBQIjnlo=";
};
cargoLock.lockFile = "${src.outPath}/Cargo.lock";
}) { };
#### packages which are actually in use somewhere ####
galmon-core = self.callPackage ./galmon.nix {};
galmon-full = self.callPackage ./galmon.nix { buildAll = true; };
hikari = super.hikari.overrideAttrs (old: {
makeFlags = old.makeFlags ++ [ "DEBUG=YES" ];
patches = [ ./patches/hikari-gtk4.patch ];
});
akkoma-fe = super.akkoma-frontends.akkoma-fe.overrideAttrs (old: {
patches = [ ./patches/akkoma-fe-toki-pona.patch ];
});
akkoma = super.akkoma.overrideAttrs (old: {
patches = [ ./patches/akkoma-toki-pona.patch ];
});
cgit = super.cgit.overrideAttrs (old: {
patches = [ ./patches/cgit-main-instead-of-master.patch ];
});
almanac = self.rustPlatform.buildRustPackage rec {
pname = "almanac";
version = "git";
src = inputs.almanac.outPath;
cargoLock.lockFile = "${src}/Cargo.lock";
};
rustex = rustPlatform.buildRustPackage rec {
pname = "rustex";
version = "git";
src = "${self.fetchFromGitHub {
owner = "slatex";
repo = "RusTeX";
rev = "74f9d13d4a88e32a32c5d8b10e5ae1a2442a7a92";
sha256 = "sha256-SOnqb/ptMoPI+G96nI/dQHOsvjlaDa6YSBEjy77kRdY=";
}}/rustex";
postPatch = ''
ln -s ${./patches/rustex-cargo.lock} Cargo.lock
'';
cargoLock.lockFile = ./patches/rustex-cargo.lock;
doCheck = false;
};
kijetesantakaluotokieni = self.rustPlatform.buildRustPackage rec {
pname = "kijetesantakaluotokieni";
version = "git";
src = self.fetchgit {
url = "https://git.2ki.xyz/spiders/kijetesantakaluotokieni";
rev = "7d9ea828f42ffd9fb6826ea4cbf7677b08222064";
sha256 = "sha256-PEp+K5mRNUR6yWLrpGpiX8qvaPQIibA17NQwXUiC2lk=";
};
cargoLock.lockFile = "${src}/Cargo.lock";
};
showrt = self.rustPlatform.buildRustPackage rec {
pname = "showrt";
version = "git";
src = inputs.showrt;
nativeBuildInputs = [ self.protobuf ];
cargoLock.lockFile = "${src}/Cargo.lock";
};
isabelle-utils = self.rustPlatform.buildRustPackage rec {
pname = "isabelle-utils";
version = "git";
src = inputs.isabelle-utils;
cargoLock.lockFile = "${src}/Cargo.lock";
doCheck = false;
};
isabat = import "${inputs.isabelle-utils}/isabat.nix" {
pkgs = self;
isabelle-rust-utils = self.isabelle-utils;
};
ntfy-matrix-bot = rustPlatform.buildRustPackage rec {
pname = "ntfy-matrix-bot";
version = "0.10";
src = inputs.ntfy-matrix-bot;
cargoLock.lockFile = "${src}/Cargo.lock";
doCheck = false;
meta.mainProgram = "ntfy-matrix-bot";
};
element-web-unwrapped = super.element-web-unwrapped.overrideAttrs {
patches = [ ./patches/element-css.patch ];
# the below patches the javascript's assumptions about box height
# in the left side bar so that hiding overflow will work correctly
# should be .mx_RoomTile's height + 12px
# TODO: once --replace-fail is in stable use that instead
preBuild = ''
substituteInPlace node_modules/matrix-react-sdk/src/stores/room-list/ListLayout.ts \
--replace "TILE_HEIGHT_PX = 44" "TILE_HEIGHT_PX = 32"
'';
};
bahnhof-name =
let
haskellPkgs = self.haskellPackages.override (old: {
overrides = self': super': with self.haskell.lib; {
fuzzyfind = unmarkBroken (doJailbreak super'.fuzzyfind);
fuzzyset = unmarkBroken (doJailbreak super'.fuzzyset);
};
});
pkg = { mkDerivation, base, bytestring, cassava, containers
, fuzzyfind, fuzzyset, http-client, http-client-openssl, http-types
, lib, stm, text, time, vector, wai, wai-extra, warp
}:
mkDerivation {
pname = "bahnhof.name";
version = "0.2.0.0";
src = inputs.bahnhof-name;
isLibrary = false;
isExecutable = true;
executableHaskellDepends = [
base bytestring cassava containers fuzzyfind fuzzyset http-client
http-client-openssl http-types stm text time vector wai wai-extra
warp
];
mainProgram = "bahnhof-name";
license = lib.licenses.eupl12;
postInstall = ''
cp -r $src/data $out
'';
};
in
haskellPkgs.callPackage pkg {};
nomsring = super.haskellPackages.callPackage ./nomsring {};
#### sporadically maintained / updated ####
hikari_unstable = (unstable.hikari.overrideAttrs (old: {
src = /home/stuebinm/clones/hikari;
buildInputs = old.buildInputs ++ [ self.pandoc self.xorg.xcbutilwm.dev ]; #self.libdrm self.libdrm.dev ];
makeFlags = with self.lib;
[ "PREFIX=$(out)" "WITH_POSIX_C_SOURCE=YES"
"WITH_GAMMACONTROL=YES" "WITH_LAYERSHELL=YES" "WITH_SCREENCOPY=YES" ];
})).override { wlroots = unstable.wlroots_0_16; stdenv = self.clangStdenv; };
travelynx = self.callPackage ./travelynx.nix {};
#### packaged mostly as shitpost / to play around with ####
bookwyrm = (self.callPackage ./bookwyrm.nix {
python = super.python311.override ({
packageOverrides = self: super: {
django = super.django_3;
python-crontab = super.python-crontab.overridePythonAttrs (_: { doCheck = false; });
django-sass-processor = self.callPackage ./python/django-sass-processor.nix {};
django-imagekit = self.callPackage ./python/django-imagekit.nix {};
bw-file-resubmit = self.callPackage ./python/bw-file-resubmit.nix {};
};
});
});
# currently broken because poetry2nix was moved out of nixpkgs
# glitchtip = (self.callPackage ./glitchtip.nix {
# python = super.python310.override ({
# packageOverrides = self: super: {
# django = super.django_4;
# };
# });
# });
crs-tracker = crs-tools.tracker;
crs-php = crs-tools.php;
matrix-to = self.callPackage ./matrix-to.nix {};
heartwood = self.callPackage radicle.heartwood { inherit (rustPlatform) buildRustPackage; };
radicle-interface = self.callPackage radicle.interface {};
radicle-tui = self.callPackage radicle.tui { inherit (rustPlatform) buildRustPackage; };
inweb = self.callPackage ({stdenv, gnumake, fetchFromGitHub}: stdenv.mkDerivation rec {
pname = "inweb";
version = "v7.2.0";
src = fetchFromGitHub {
repo = "inweb";
owner = "ganelson";
rev = version;
hash = "sha256-kgyMzqGyZ1aihx8f9OCFOd2dlAUhUp98ni4rcgNrPq0=";
};
buildPhase = ''
ln -s . inweb
bash inweb/scripts/first.sh linux
'';
installPhase = ''
mkdir -p $out/bin
cp Tangled/inweb $out/bin
'';
}) {};
mollysocket = self.callPackage ./mollysocket.nix { };
}
|