infrastructure/pkgs/default.nix
2021-03-17 05:43:35 +00:00

49 lines
1.4 KiB
Nix

{ config ? { }, sources, system ? builtins.currentSystem, ... }@args:
let
pkgs = import sources.nixpkgs { inherit config; };
overlay = self: super: rec {
dino = super.callPackage "${sources.qyliss-nixlib}/overlays/patches/dino" {
inherit (super) dino;
};
discord = unstable.discord.override { nss = self.nss_latest; };
ncmpcpp = unstable.ncmpcpp.override {
visualizerSupport = true;
clockSupport = true;
};
weechat = arc.pkgs.wrapWeechat arc.pkgs.weechat-unwrapped {
configure = { availablePlugins, ... }: {
scripts = [ arc.pkgs.weechatScripts.weechat-matrix ];
plugins = [
availablePlugins.perl
(availablePlugins.python.withPackages
(ps: [ ps.potr ps.weechat-matrix ]))
];
};
};
notmuch = super.callPackage ./notmuch { inherit (super) notmuch; };
arc = import sources.arc-nixexprs { pkgs = super; };
unstable = import sources.nixpkgs-unstable { inherit (self) config; };
nur = import sources.NUR {
nurpkgs = self;
pkgs = self;
};
screenstub = unstable.callPackage ./screenstub { };
kat-weather = super.callPackage ./kat-weather { };
linuxPackagesFor = kernel:
(super.linuxPackagesFor kernel).extend (_: ksuper: {
vendor-reset =
(super.callPackage ./vendor-reset { kernel = ksuper.kernel; }).out;
});
};
in pkgs.extend (overlay)