forked from hacc/haccfiles
stuebinm
eda184ee48
this is currently unused anyways, but in case we ever do need it again, https://github.com/NixOS/nixpkgs/pull/223268 has removed the need for the weird override workaround.
52 lines
1.4 KiB
Nix
52 lines
1.4 KiB
Nix
{ sources, system ? builtins.currentSystem, ... }@args:
|
|
|
|
let
|
|
pkgs = import sources.nixpkgs args;
|
|
unstable = import sources.nixpkgs-unstable args;
|
|
|
|
callPackage = pkgs.lib.callPackageWith (pkgs // newpkgs);
|
|
|
|
newpkgs = {
|
|
|
|
mattermost = callPackage ./mattermost {inherit sources;};
|
|
|
|
tracktrain = import sources.tracktrain {
|
|
nixpkgs = pkgs;
|
|
};
|
|
|
|
# a version of the lounge with some extra css that
|
|
# hides things the hacc-voc doesn't need
|
|
thelounge-hacked = pkgs.stdenv.mkDerivation {
|
|
name = "thelounge-hacked";
|
|
src = pkgs.thelounge;
|
|
|
|
phases = [ "buildPhase" "installPhase" ];
|
|
buildPhase = ''
|
|
cp $src/* -r .
|
|
chmod 777 lib/node_modules/thelounge/public/css/style.css
|
|
cat ${./thelounge/css-patch.css} >> lib/node_modules/thelounge/public/css/style.css
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp * -r $out
|
|
'';
|
|
};
|
|
|
|
uffd = callPackage ./uffd {};
|
|
|
|
netbox = pkgs.netbox.override (super: rec {
|
|
python3 = super.python3.override (oldpy: {
|
|
packageOverrides = self: super: {
|
|
social-auth-core = super.social-auth-core.overrideAttrs ( old: {
|
|
name = "social-auth-with-uffd";
|
|
patches = [ ./netbox/0001-add-uffd-oauth2-backend.patch ];
|
|
});
|
|
};
|
|
});
|
|
});
|
|
|
|
inherit (unstable) vaultwarden vaultwarden-vault;
|
|
};
|
|
|
|
in pkgs.extend(_: _: newpkgs)
|