about summary refs log tree commit diff
path: root/pkgs/by-name/sw/swayws/package.nix
blob: 8041763adef06a62de8646dca6a1ebc84fbabecc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, fetchFromGitLab, rustPlatform }:

rustPlatform.buildRustPackage rec {
  pname = "swayws";
  version = "1.2.0";

  src = fetchFromGitLab {
    owner = "w0lff";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-f0kXy7/31imgHHqKPmW9K+QrLqroaPaXwlJkzOoezRU=";
  };

  cargoHash = "sha256-VYT6wV59fraAoJgR/i6GlO8s7LUoehGtxPAggEL1eLo=";
  # Required patch until upstream fixes https://gitlab.com/w0lff/swayws/-/issues/1
  cargoPatches = [
    ./ws-update-Cargo-lock.patch
  ];

  # swayws does not have any tests
  doCheck = false;

  meta = with lib; {
    description = "Sway workspace tool which allows easy moving of workspaces to and from outputs";
    mainProgram = "swayws";
    homepage = "https://gitlab.com/w0lff/swayws";
    license = licenses.mit;
    maintainers = [ maintainers.atila ];
  };
}