All my system configs and packages in one repo
1# May lord have mercy on my soul
2{
3 self,
4 ...
5}:
6{
7 flake.overlays.default =
8 final: prev:
9 let
10 inherit (prev.stdenv.hostPlatform) system;
11
12 myPkgs = prev.lib.optionalAttrs (builtins.hasAttr system self.packages) self.packages.${system};
13 in
14 myPkgs
15 // {
16 jujutsu = prev.jujutsu.overrideAttrs {
17 patches = (prev.patches or [ ]) ++ [
18 # HACK: I am so sick and tired of not being able to push to Nixpkgs
19 # because some edgy fucking idiot thought that it's a good idea to not
20 # specify an email address in a commit
21 #
22 # See https://github.com/NixOS/nixpkgs/pull/453871
23 # See https://github.com/jj-vcs/jj/issues/5723
24 (prev.fetchpatch2 {
25 url = "https://github.com/pluiedev/jj/commit/c7b5308e2c093e762f723836392602fbb4917299.patch";
26 hash = "sha256-OCNoyH1h7gxjaBdZB4o4hiv1mWNxJGYmBefHA4Q/860=";
27 })
28 ];
29 doCheck = false;
30 };
31 };
32}