ark/overlays/hydrus.nix

23 lines
639 B
Nix
Raw Normal View History

2021-03-26 21:03:40 +03:00
final: prev: {
2021-04-21 03:11:27 +03:00
hydrus = prev.hydrus.overrideAttrs (old:
let version = "435";
in
{
inherit version;
2021-04-14 23:41:56 +03:00
2021-04-21 03:11:27 +03:00
src = prev.fetchFromGitHub {
owner = "hydrusnetwork";
repo = old.pname;
rev = "v${version}";
sha256 = "sha256-+YOFqRgyNtdVBBCb6MWb+PqUoGvt8M0/ygiHrvxdWWg=";
};
2021-04-14 23:41:56 +03:00
2021-04-21 03:11:27 +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
}