53 lines
1.6 KiB
Nix
53 lines
1.6 KiB
Nix
{ nixpkgs-soundtouch, system, pkgs, nixpkgs, ... }: with pkgs;
|
|
let
|
|
rawPerlPackages = callPackage "${nixpkgs}/pkgs/top-level/perl-packages.nix" {
|
|
overrides = pkgs: { };
|
|
buildPerl = perl;
|
|
};
|
|
hydra = callPackage "${nixpkgs}/pkgs/development/tools/misc/hydra/common.nix" {
|
|
version = "2021-08-11";
|
|
src = fetchFromGitHub {
|
|
owner = "NixOS";
|
|
repo = "hydra";
|
|
rev = "9bce425c3304173548d8e822029644bb51d35263";
|
|
sha256 = "sha256-tGzwKNW/odtAYcazWA9bPVSmVXMGKfXsqCA1UYaaxmU=";
|
|
};
|
|
nix = (import nixpkgs-soundtouch { inherit system; }).nixVersions.unstable;
|
|
tests = {
|
|
basic = nixosTests.hydra.hydra-unstable;
|
|
};
|
|
};
|
|
plover = with python3Packages; libsForQt5.mkDerivationWith buildPythonPackage rec {
|
|
pname = "plover-wayland";
|
|
version = "2022-01-14";
|
|
src = fetchFromGitHub {
|
|
owner = "matteodelabre";
|
|
repo = "plover";
|
|
rev = "fd5668a3ad9bd091289dd2e5e8e2c1dec063d51f";
|
|
sha256 = "0y3mdfqjv3vmv5c0cpvfa2mqdylan44iw1js480sxvklq8sxq6yv";
|
|
};
|
|
postPatch = "sed -i /PyQt5/d setup.cfg";
|
|
checkInputs = [ pytest mock ];
|
|
propagatedBuildInputs = [ Babel pyqt5 xlib pyserial appdirs wcwidth setuptools ];
|
|
dontWrapQtApps = true;
|
|
preFixup = ''
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
|
'';
|
|
};
|
|
in
|
|
{
|
|
nixpkgs.overlays = [
|
|
(self: prev: {
|
|
coreutils = prev.coreutils.overrideAttrs (old: {
|
|
checkPhase = "true";
|
|
});
|
|
soundtouch = nixpkgs-soundtouch.legacyPackages.${system}.soundtouch;
|
|
hydra-unstable = hydra.overrideAttrs (old: {
|
|
patches = [
|
|
../../extra/hydra.patch
|
|
];
|
|
});
|
|
plover.dev = plover;
|
|
})
|
|
];
|
|
}
|