depot/third_party/nixpkgs/pkgs/by-name/sw/swayws/package.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

30 lines
821 B
Nix

{ 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 ];
};
}