ark/overlays/hydrus.nix

20 lines
579 B
Nix
Raw Normal View History

2021-03-26 21:03:40 +03:00
final: prev: {
hydrus = prev.hydrus.overrideAttrs (old: rec {
2021-04-15 16:01:22 +03:00
version = "435";
2021-04-14 23:41:56 +03:00
2021-04-15 16:01:22 +03:00
src = prev.fetchFromGitHub {
owner = "hydrusnetwork";
repo = old.pname;
rev = "v${version}";
sha256 = "sha256-+YOFqRgyNtdVBBCb6MWb+PqUoGvt8M0/ygiHrvxdWWg=";
2021-03-26 21:03:40 +03:00
};
2021-04-14 23:41:56 +03:00
2021-04-09 14:08:34 +03:00
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
'';
2021-03-26 21:03:40 +03:00
});
}