nixpkgs/pkgs/by-name/sw/swayest-workstyle/package.nix
Anderson Torres 6002d45a96 swayest-workstyle: get rid of rec
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.
2024-08-19 13:35:15 -03:00

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