mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 05:13:10 +01:00
128 lines
3.2 KiB
Nix
128 lines
3.2 KiB
Nix
_final: prev:
|
|
let
|
|
inherit (prev) callPackage;
|
|
inherit (prev) fetchFromGitHub;
|
|
inherit (prev) fetchPypi;
|
|
inherit (prev) makeWrapper;
|
|
inherit (prev) python3Packages;
|
|
in
|
|
{
|
|
|
|
pcmanfm = prev.pcmanfm.overrideAttrs (_: {
|
|
# remove deskop preferences shortcut
|
|
postInstall = ''
|
|
rm $out/share/applications/pcmanfm-desktop-pref.desktop
|
|
'';
|
|
});
|
|
pww = callPackage ../pkgs/pww { };
|
|
ianny = callPackage ../pkgs/ianny { };
|
|
|
|
tpm2-pkcs11 = prev.tpm2-pkcs11.override { fapiSupport = false; };
|
|
imv = prev.imv.override {
|
|
# freeimage is broken
|
|
withBackends = [ "libtiff" "libjpeg" "libpng" "librsvg" "libheif" ];
|
|
};
|
|
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=";
|
|
};
|
|
|
|
});
|
|
|
|
gnome-break-timer = callPackage ../pkgs/gnome-break-timer { };
|
|
jmri = callPackage ../pkgs/jmri { };
|
|
adguardian-term = callPackage ../pkgs/adguardian-term { };
|
|
|
|
# upstream package is broken and can't be fixed by overriding attrs. so I just completely redo it in here
|
|
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=";
|
|
};
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
doCheck = false; # disabled because it requires a ccnet environment
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
];
|
|
|
|
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=";
|
|
};
|
|
})
|
|
];
|
|
|
|
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=";
|
|
};
|
|
});
|
|
}
|