2022-03-09 13:47:07 +00:00
|
|
|
{ nixpkgs-soundtouch, system, pkgs, nixpkgs, nixpkgs-wxwidgets, hydra, ... }: with pkgs;
|
2022-02-28 14:37:43 +00:00
|
|
|
let
|
2022-03-04 09:54:04 +00:00
|
|
|
rawPerlPackages = callPackage "${nixpkgs}/pkgs/top-level/perl-packages.nix" {
|
2022-02-28 14:37:43 +00:00
|
|
|
overrides = pkgs: { };
|
2022-03-04 09:54:04 +00:00
|
|
|
buildPerl = perl;
|
2022-02-28 14:37:43 +00:00
|
|
|
};
|
2022-03-09 13:47:07 +00:00
|
|
|
hydra-pkg = hydra.defaultPackage.${system};
|
2022-03-04 10:30:29 +00:00
|
|
|
rtf-tokenize = with python3Packages; buildPythonPackage rec {
|
|
|
|
pname = "rtf_tokenize";
|
|
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "benoit-pierre";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1l5pfrggil9knk58r2r84i9msm7mdhddl87hkfk54qqk2sqzc06g";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
plover-stroke = with python3Packages; buildPythonPackage rec {
|
|
|
|
pname = "plover_stroke";
|
|
|
|
version = "1.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "benoit-pierre";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "15by14gn2grvn7835hcrijfmccy4bqwvbg38rn8fvgyl6n2zhwzn";
|
|
|
|
};
|
|
|
|
};
|
2022-03-04 09:58:00 +00:00
|
|
|
plover = with python3Packages; libsForQt5.mkDerivationWith buildPythonPackage rec {
|
2022-03-04 09:54:04 +00:00
|
|
|
pname = "plover-wayland";
|
2022-03-04 09:58:44 +00:00
|
|
|
version = "2022-01-14";
|
2022-03-04 09:54:04 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matteodelabre";
|
|
|
|
repo = "plover";
|
|
|
|
rev = "fd5668a3ad9bd091289dd2e5e8e2c1dec063d51f";
|
|
|
|
sha256 = "0y3mdfqjv3vmv5c0cpvfa2mqdylan44iw1js480sxvklq8sxq6yv";
|
|
|
|
};
|
2022-03-05 13:32:02 +00:00
|
|
|
patches = [
|
2022-03-11 15:45:45 +00:00
|
|
|
./cache-kb-mapping.patch
|
2022-03-05 13:32:02 +00:00
|
|
|
];
|
2022-03-04 10:30:29 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i /PyQt5/d setup.cfg
|
|
|
|
sed -i 's|/usr/share/wayland|${wayland}/share/wayland|' plover_build_utils/setup.py
|
|
|
|
sed -i 's|pywayland==|pywayland>=|' reqs/dist.txt
|
|
|
|
'';
|
2022-03-04 09:54:04 +00:00
|
|
|
checkInputs = [ pytest mock ];
|
2022-03-04 10:30:29 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
Babel
|
|
|
|
pyqt5
|
|
|
|
xlib
|
|
|
|
pyserial
|
|
|
|
appdirs
|
|
|
|
wcwidth
|
|
|
|
setuptools
|
|
|
|
pywayland
|
|
|
|
pkg-config
|
|
|
|
plover-stroke
|
|
|
|
rtf-tokenize
|
|
|
|
];
|
2022-03-04 09:54:04 +00:00
|
|
|
dontWrapQtApps = true;
|
2022-03-04 10:30:29 +00:00
|
|
|
preBuild = ''
|
|
|
|
export PKG_CONFIG="${pkg-config}/bin/pkg-config"
|
|
|
|
'';
|
2022-03-04 09:54:04 +00:00
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
|
|
|
'';
|
2022-03-04 10:30:29 +00:00
|
|
|
installCheckPhase = "true";
|
2022-03-04 09:54:04 +00:00
|
|
|
};
|
2022-02-28 14:37:43 +00:00
|
|
|
in
|
2022-02-18 13:17:35 +00:00
|
|
|
{
|
2022-01-27 16:16:42 +00:00
|
|
|
nixpkgs.overlays = [
|
2022-02-08 07:20:05 +00:00
|
|
|
(self: prev: {
|
|
|
|
coreutils = prev.coreutils.overrideAttrs (old: {
|
|
|
|
checkPhase = "true";
|
|
|
|
});
|
2022-02-18 13:17:35 +00:00
|
|
|
soundtouch = nixpkgs-soundtouch.legacyPackages.${system}.soundtouch;
|
2022-03-08 18:59:15 +00:00
|
|
|
wxGTK31-gtk3 = nixpkgs-wxwidgets.legacyPackages.${system}.wxGTK31-gtk3;
|
2022-03-09 13:47:07 +00:00
|
|
|
hydra-unstable = hydra-pkg.overrideAttrs (old: {
|
|
|
|
postPatch = ''
|
|
|
|
sed -i 's/totalNarSize > maxOutputSize/false/g' src/hydra-queue-runner/build-remote.cc
|
|
|
|
'';
|
2022-03-09 16:06:46 +00:00
|
|
|
checkPhase = "true";
|
2022-02-18 17:02:03 +00:00
|
|
|
patches = [
|
|
|
|
../../extra/hydra.patch
|
|
|
|
];
|
|
|
|
});
|
2022-03-04 09:54:04 +00:00
|
|
|
plover.dev = plover;
|
2022-03-04 19:29:00 +00:00
|
|
|
mosh = prev.mosh.overrideAttrs (old: {
|
|
|
|
patches = [
|
|
|
|
"${nixpkgs}/pkgs/tools/networking/mosh/ssh_path.patch"
|
|
|
|
"${nixpkgs}/pkgs/tools/networking/mosh/mosh-client_path.patch"
|
|
|
|
"${nixpkgs}/pkgs/tools/networking/mosh/utempter_path.patch"
|
|
|
|
"${nixpkgs}/pkgs/tools/networking/mosh/bash_completion_datadir.patch"
|
|
|
|
];
|
2022-03-04 19:35:01 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace scripts/mosh.pl \
|
|
|
|
--subst-var-by ssh "${openssh}/bin/ssh" \
|
|
|
|
--subst-var-by mosh-client "$out/bin/mosh-client"
|
|
|
|
'';
|
2022-03-04 19:29:00 +00:00
|
|
|
version = "2022-02-04";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "mobile-shell";
|
|
|
|
repo = "mosh";
|
|
|
|
rev = "dbe419d0e069df3fedc212d456449f64d0280c76";
|
|
|
|
sha256 = "09mvk9zxclkf4wrkkfzg0p2hx1f74gpymr0a0l3pckmk6za2n3d1";
|
|
|
|
};
|
|
|
|
});
|
2022-02-08 07:20:05 +00:00
|
|
|
})
|
2022-01-27 16:16:42 +00:00
|
|
|
];
|
|
|
|
}
|