
* feat: add nix flake * docs: add info about plugins in nix * Removed .envrc --------- Co-authored-by: Kirottu <arnovaara@gmail.com>
66 lines
1.3 KiB
Nix
66 lines
1.3 KiB
Nix
# default.nix
|
|
{
|
|
lib,
|
|
naersk,
|
|
glib,
|
|
targetPlatform,
|
|
makeWrapper,
|
|
atk,
|
|
gtk3,
|
|
gtk-layer-shell,
|
|
pkg-config,
|
|
librsvg,
|
|
rustfmt,
|
|
cargo,
|
|
rustc,
|
|
}: let
|
|
cargoToml = builtins.fromTOML (builtins.readFile ./anyrun/Cargo.toml);
|
|
in
|
|
naersk.lib."${targetPlatform.system}".buildPackage {
|
|
src = ./.;
|
|
|
|
buildInputs = [
|
|
pkg-config
|
|
glib
|
|
atk
|
|
gtk3
|
|
librsvg
|
|
gtk-layer-shell
|
|
];
|
|
checkInputs = [cargo rustc];
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
rustfmt
|
|
rustc
|
|
cargo
|
|
];
|
|
|
|
doCheck = true;
|
|
CARGO_BUILD_INCREMENTAL = "false";
|
|
RUST_BACKTRACE = "full";
|
|
copyLibs = true;
|
|
|
|
name = cargoToml.package.name;
|
|
version = cargoToml.package.version;
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/anyrun \
|
|
--set GDK_PIXBUF_MODULE_FILE "$(echo ${librsvg.out}/lib/gdk-pixbuf-2.0/*/loaders.cache)"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A wayland native, highly customizable runner.";
|
|
homepage = "https://github.com/Kirottu/anyrun";
|
|
license = with licenses; [gpl3];
|
|
maintainers = [
|
|
{
|
|
email = "neo@neoney.dev";
|
|
github = "n3oney";
|
|
githubId = 30625554;
|
|
name = "Michał Minarowski";
|
|
}
|
|
];
|
|
};
|
|
}
|