Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nix Flake: build failure #26

Closed
LennyLizowzskiy opened this issue Sep 17, 2023 · 3 comments · Fixed by #29
Closed

Nix Flake: build failure #26

LennyLizowzskiy opened this issue Sep 17, 2023 · 3 comments · Fixed by #29

Comments

@LennyLizowzskiy
Copy link

Declaration in .nix files:

# main flake.nix with nixosSystem
inputs = {
    watershot = {
      url = github:Kirottu/watershot;
      # inputs.nixpkgs.follows = "nixpkgs";
    };
};

### and

  environment.systemPackages = with pkgs; [
    inputs.watershot.packages.${pkgs.system}.default
  ];

Error message:

error: builder for '/nix/store/2jh9x8l3bs9qasds1fnf1nxw15nr18ha-watershot-0.2.1.drv' failed with exit code 101;
       last 10 log lines:
       >  right: `Title`: Parsing initial_title=^hello$', src/window/search.rs:66:13
       > note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
       >
       >
       > failures:
       >     window::search::tests::test_window_search_param_from_str
       >
       > test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
       >
       > error: test failed, to rerun pass `--bin watershot`
       For full logs, run 'nix log /nix/store/2jh9x8l3bs9qasds1fnf1nxw15nr18ha-watershot-0.2.1.drv'.
error: 1 dependencies of derivation '/nix/store/mpvpv2vnvh67r71502gfspnwp8sn2751-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vvwmj4haaa5gh6qcfc7vigj1wqr88rs2-nixos-system-grogoroth-23.11.20230915.ace5093.drv' failed to build
@RaySlash
Copy link

RaySlash commented Sep 20, 2023

I can second this. I am also facing the same problem. The error is exactly the same.
Config repo: https://github.com/rayslash/nixos-config

My config:

# flake.nix
#...
inputs = {
        watershot.url = "github:Kirottu/watershot/master";
};

outputs = { nixpkgs, nurpkgs, home-manager, hyprland, watershot, ... }@inputs: {

#...
# home.nix
#...
home.packages = with pkgs; [
    inputs.watershot.packages.${pkgs.system}.default
    #...
];
#...

@Kirottu
Copy link
Owner

Kirottu commented Sep 20, 2023

Seems like the tests for the window searching have broken. Can you take a look at this @Syndelis as it is code that you committed?

@Syndelis
Copy link
Contributor

My bad guys, seems like I made a typo (or maybe made it wrong on purpose to test locally and forgot to revert it). PR #29 should fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants