nixos-config/config/workarounds/default.nix

54 lines
1.6 KiB
Nix
Raw Normal View History

2022-03-04 09:54:04 +00:00
{ nixpkgs-soundtouch, system, pkgs, nixpkgs, ... }: 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-04 09:54:04 +00:00
hydra = callPackage "${nixpkgs}/pkgs/development/tools/misc/hydra/common.nix" {
2022-03-02 13:47:38 +00:00
version = "2021-08-11";
2022-03-04 09:54:04 +00:00
src = fetchFromGitHub {
2022-03-02 13:47:38 +00:00
owner = "NixOS";
2022-02-28 14:37:43 +00:00
repo = "hydra";
2022-03-02 13:47:38 +00:00
rev = "9bce425c3304173548d8e822029644bb51d35263";
sha256 = "sha256-tGzwKNW/odtAYcazWA9bPVSmVXMGKfXsqCA1UYaaxmU=";
2022-02-28 14:37:43 +00:00
};
2022-02-28 19:05:56 +00:00
nix = (import nixpkgs-soundtouch { inherit system; }).nixVersions.unstable;
2022-02-28 14:37:43 +00:00
tests = {
2022-03-04 09:54:04 +00:00
basic = nixosTests.hydra.hydra-unstable;
2022-02-28 14:37:43 +00:00
};
};
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";
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[@]}")
'';
};
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-02-28 14:37:43 +00:00
hydra-unstable = hydra.overrideAttrs (old: {
patches = [
../../extra/hydra.patch
];
});
2022-03-04 09:54:04 +00:00
plover.dev = plover;
2022-02-08 07:20:05 +00:00
})
2022-01-27 16:16:42 +00:00
];
}