ark/overlays/hydrus.nix
2021-05-24 22:39:47 +03:00

20 lines
579 B
Nix

final: prev: {
hydrus = prev.hydrus.overrideAttrs (old: rec {
version = "435";
src = prev.fetchFromGitHub {
owner = "hydrusnetwork";
repo = old.pname;
rev = "v${version}";
sha256 = "sha256-+YOFqRgyNtdVBBCb6MWb+PqUoGvt8M0/ygiHrvxdWWg=";
};
postPatch = ''
sed 's;os\.path\.join(\sHC\.BIN_DIR,.*;"${prev.miniupnpc_2}/bin/upnpc";' \
-i ./hydrus/core/networking/HydrusNATPunch.py
sed 's;os\.path\.join(\sHC\.BIN_DIR,.*;"${prev.swftools}/bin/swfrender";' \
-i ./hydrus/core/HydrusFlashHandling.py
'';
});
}