nixos-config/overlays/default.nix

154 lines
3.8 KiB
Nix
Raw Normal View History

2023-06-22 14:34:05 +02:00
_final: prev:
let
inherit (prev) callPackage;
2023-07-27 23:25:08 +02:00
inherit (prev) fetchFromGitHub;
2023-10-15 16:30:40 +02:00
inherit (prev) fetchPypi;
2024-05-25 22:31:20 +02:00
inherit (prev) fetchpatch;
2023-10-15 16:30:40 +02:00
inherit (prev) makeWrapper;
2024-02-17 19:14:03 +01:00
inherit (prev) python3Packages;
2023-06-22 14:34:05 +02:00
in
2024-03-11 22:48:42 +01:00
{
2024-04-10 00:34:03 +02:00
pcmanfm = prev.pcmanfm.overrideAttrs (_: {
# remove deskop preferences shortcut
postInstall = ''
rm $out/share/applications/pcmanfm-desktop-pref.desktop
'';
});
2023-06-22 14:34:05 +02:00
pww = callPackage ../pkgs/pww { };
2023-12-19 22:42:38 +01:00
ianny = callPackage ../pkgs/ianny { };
2023-07-27 23:25:08 +02:00
2023-11-18 14:04:19 +01:00
tpm2-pkcs11 = prev.tpm2-pkcs11.override { fapiSupport = false; };
2024-02-26 19:16:04 +01:00
imv = prev.imv.override {
# freeimage is broken
withBackends = [ "libtiff" "libjpeg" "libpng" "librsvg" "libheif" ];
};
2024-03-23 00:32:12 +01:00
# don't compile the bloat
rsyslog = prev.rsyslog.override {
withMysql = false;
withJemalloc = false;
withPostgres = false;
withUuid = false;
withCurl = false;
withDbi = false;
withNetSnmp = false;
withGnutls = false;
withGcrypt = false;
withLognorm = false;
withMaxminddb = false;
withOpenssl = false;
withRelp = false;
withKsi = false;
withLogging = false;
withHadoop = false;
withRdkafka = false;
withMongo = false;
withCzmq = false;
withRabbitmq = false;
withHiredis = false;
};
2024-04-11 11:58:00 +02:00
zsh-fzf-tab = prev.zsh-fzf-tab.overrideAttrs (_: rec {
version = "1.1.1";
src = fetchFromGitHub {
owner = "Aloxaf";
repo = "fzf-tab";
rev = "v${version}";
sha256 = "sha256-0/YOL1/G2SWncbLNaclSYUz7VyfWu+OB8TYJYm4NYkM=";
};
});
2023-07-27 23:25:08 +02:00
gnome-break-timer = callPackage ../pkgs/gnome-break-timer { };
2023-06-22 14:34:05 +02:00
jmri = callPackage ../pkgs/jmri { };
adguardian-term = callPackage ../pkgs/adguardian-term { };
2023-10-15 16:30:40 +02:00
# upstream package is broken and can't be fixed by overriding attrs. so I just completely redo it in here
2024-05-24 15:59:34 +02:00
seahub = (python3Packages.buildPythonApplication rec {
pname = "seahub";
version = "11.0.1";
format = "other";
src = fetchFromGitHub {
owner = "haiwen";
repo = "seahub";
rev = "v11.0.1-pro";
sha256 = "sha256-dxMvbiAdECMZIf+HgA5P2gZYI9l+k+nhmdzfg90037A=";
};
2023-10-15 16:30:40 +02:00
2024-05-24 15:59:34 +02:00
dontBuild = true;
2023-10-15 16:30:40 +02:00
2024-05-24 15:59:34 +02:00
doCheck = false; # disabled because it requires a ccnet environment
2023-10-15 16:30:40 +02:00
2024-05-24 15:59:34 +02:00
nativeBuildInputs = [
makeWrapper
];
2023-10-15 16:30:40 +02:00
2024-05-24 15:59:34 +02:00
propagatedBuildInputs = with python3Packages; [
django
future
django-compressor
django-statici18n
django-webpack-loader
django-simple-captcha
django-picklefield
django-formtools
mysqlclient
pillow
python-dateutil
djangorestframework
openpyxl
requests
requests-oauthlib
chardet
pyjwt
pycryptodome
qrcode
pysearpc
seaserv
gunicorn
markdown
bleach
python-ldap
pyopenssl
(buildPythonPackage rec {
pname = "djangosaml2";
version = "1.7.0";
doCheck = false;
propagatedBuildInputs = [
pysaml2
django
defusedxml
];
src = fetchPypi {
inherit pname version;
sha256 = "sha256-WiMl2UvbOskLA5o5LXPrBF2VktlDnlBNdc42eZ62Fko=";
};
})
];
2023-10-15 16:30:40 +02:00
2024-05-24 15:59:34 +02:00
installPhase = ''
cp -dr --no-preserve='ownership' . $out/
wrapProgram $out/manage.py \
--prefix PYTHONPATH : "$PYTHONPATH:$out/thirdpart:"
'';
passthru = rec {
python = prev.python3;
pythonPath = python.pkgs.makePythonPath propagatedBuildInputs;
};
});
# (hopefully) fix systemd journal reading
prometheus-postfix-exporter = prev.prometheus-postfix-exporter.overrideAttrs (_old: {
patches = [
./prometheus-postfix-exporter/0001-cleanup-also-catch-milter-reject.patch
];
src = fetchFromGitHub {
owner = "adangel";
repo = "postfix_exporter";
rev = "414ac12ee63415eede46cb3084d755a6da6fba23";
hash = "sha256-m1kVaO3N7XC1vtnxXX9kMiEFPmZuoopRUYgA7gQzP8w=";
};
});
2023-06-22 14:34:05 +02:00
}