mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
6002d45a96
Because I do not like rec. Further, https://nix.dev/guides/best-practices.html#recursive-attribute-set-rec Further I believe source acquisition should be detached from the derivation(s) -- but this is an issue for another issue.
34 lines
799 B
Nix
34 lines
799 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
let
|
|
pname = "swayest-workstyle";
|
|
version = "1.3.5";
|
|
src = fetchFromGitHub {
|
|
owner = "Lyr-7D1h";
|
|
repo = "swayest_workstyle";
|
|
rev = version;
|
|
hash = "sha256-Dk6rAiz7PXUfyy9fWMtSVRjaWWl66n38gTNyWKqeqkU=";
|
|
};
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
inherit pname version src;
|
|
|
|
cargoHash = "sha256-sLQPq3tyWq1TxxeFyg05qBt+KGI/vO0jLU7wJLiqcYA=";
|
|
|
|
# No tests
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Map sway workspace names to icons defined depending on the windows inside of the workspace";
|
|
homepage = "https://github.com/Lyr-7D1h/swayest_workstyle";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "sworkstyle";
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|