Skip to content

Commit 4c93716

Browse files
committed
ci(nix): disable tests before install
Tests regularly break when installing from master branch. Disable them to allow update on NixOs.
1 parent a46a329 commit 4c93716

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

‎flake.nix‎

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
55
};
66

7-
outputs = { self, flake-utils, nixpkgs }:
8-
flake-utils.lib.eachDefaultSystem (system:
9-
let
7+
outputs = {
8+
self,
9+
flake-utils,
10+
nixpkgs,
11+
}:
12+
flake-utils.lib.eachDefaultSystem (
13+
system: let
1014
inherit (nixpkgs) lib;
1115

1216
pkgs = nixpkgs.legacyPackages.${system};
@@ -15,8 +19,7 @@
1519
libxkbcommon
1620
wayland
1721
]);
18-
in
19-
{
22+
in {
2023
packages.default = pkgs.rustPlatform.buildRustPackage {
2124
pname = "yofi";
2225
inherit ((lib.importTOML (self + "/Cargo.toml")).package) version;
@@ -33,6 +36,10 @@
3336
libxkbcommon
3437
];
3538

39+
# disable tests
40+
checkType = "debug";
41+
doCheck = false;
42+
3643
postFixup = ''
3744
patchelf $out/bin/yofi --add-rpath ${rpath}
3845
'';

0 commit comments

Comments
 (0)