2023-04-12 16:04:07 +07:00
|
|
|
{ lib
|
|
|
|
, substituteAll
|
|
|
|
, nix-gitignore
|
|
|
|
, rustPlatform
|
|
|
|
, xdg-utils
|
|
|
|
, ... }:
|
|
|
|
|
2023-03-07 18:20:08 +07:00
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
pname = "rofi-steam-game-list";
|
|
|
|
version = "0.1";
|
|
|
|
|
2023-03-07 19:46:23 +07:00
|
|
|
src = nix-gitignore.gitignoreSource ["/target" "default.nix"] (lib.cleanSource ./.);
|
2023-03-07 18:20:08 +07:00
|
|
|
|
2023-04-12 16:04:07 +07:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./hardcode_xdg_open.patch;
|
|
|
|
xdg_open = "${xdg-utils}/bin/xdg-open";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-03-07 19:46:23 +07:00
|
|
|
cargoLock.lockFile = ./Cargo.lock;
|
2023-03-07 18:20:08 +07:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A program to list Steam games for Rofi";
|
|
|
|
license = licenses.bsd0;
|
|
|
|
};
|
|
|
|
}
|