
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.
32 lines
776 B
Nix
32 lines
776 B
Nix
{ lib
|
|
, fetchFromSourcehut
|
|
, rustPlatform
|
|
, wayland
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "waylevel";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~shinyzenith";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-T2gqiRcKrKsvwGNnWrxR1Ga/VX4AyllYn1H25aIKt5s=";
|
|
};
|
|
|
|
cargoHash = "sha256-gw5m1/btJ5zZP04C7BCnHqEOUBoeu0whK8W7xA+xSQo=";
|
|
|
|
postFixup = ''
|
|
patchelf --set-rpath ${lib.makeLibraryPath [wayland]} $out/bin/waylevel
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Tool to print wayland toplevels and other compositor info";
|
|
homepage = "https://git.sr.ht/~shinyzenith/waylevel";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ dit7ya ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "waylevel";
|
|
};
|
|
}
|