nixpkgs/pkgs/by-name/aw/aw-watcher-window-wayland/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

44 lines
988 B
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
pkg-config,
openssl,
}:
rustPlatform.buildRustPackage rec {
pname = "aw-watcher-window-wayland";
version = "6108ad3df8e157965a43566fa35cdaf144b1c51b";
src = fetchFromGitHub {
owner = "ActivityWatch";
repo = pname;
rev = version;
hash = "sha256-xl9+k6xJp5/t1QPOYfnBLyYprhhrzjzByDKkT3dtVVQ=";
};
cargoPatches = [ ./rustc-serialize-fix.patch ];
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"aw-client-rust-0.1.0" = "sha256-9tlVesnBeTlazKE2UAq6dzivjo42DT7p7XMuWXHHlnU=";
};
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
];
meta = with lib; {
description = "WIP window and afk watcher for wayland";
homepage = "https://github.com/ActivityWatch/aw-watcher-window-wayland";
license = licenses.mpl20;
maintainers = with maintainers; [ esau79p ];
mainProgram = "aw-watcher-window-wayland";
platforms = platforms.linux;
};
}