some more cleanup

This commit is contained in:
Grimmauld 2024-05-16 11:10:12 +02:00
parent cda1cfa771
commit e561b82d1e
Signed by: Grimmauld
GPG Key ID: C2946668769F91FB
3 changed files with 4 additions and 20 deletions

View File

@ -6,8 +6,6 @@ authors = [ "Grimmauld <grimmauld@grimmauld.de>" ]
description = "Search for config files in XDG_CONFIG_DIRS" description = "Search for config files in XDG_CONFIG_DIRS"
license-file = "LICENSE" license-file = "LICENSE"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
clap = {version="4.5.4", features = ["derive"]} clap = {version="4.5.4", features = ["derive"]}
clap-stdin = {version="0.4.0"} clap-stdin = {version="0.4.0"}

View File

@ -22,12 +22,7 @@
libPath = libPath =
with pkgs; with pkgs;
lib.makeLibraryPath [ lib.makeLibraryPath [
# load external libraries that you need in your rust project here
glib
gtk3
libsoup_3
networkmanager
webkitgtk_4_1
]; ];
in in
{ {
@ -85,14 +80,5 @@
default = confwhich-pkg; default = confwhich-pkg;
} }
); );
nixosModules =
let
confwhich-module = (import ./nix/rmenu.nix);
in
{
rmenu = confwhich-module;
default = confwhich-module;
};
}; };
} }

View File

@ -7,9 +7,9 @@ use std::fs;
use std::process::exit; use std::process::exit;
use std::string::String; use std::string::String;
static XDG_CONFIG_HOME: &str = "XDG_CONFIG_HOME"; const XDG_CONFIG_HOME: &str = "XDG_CONFIG_HOME";
static XDG_CONFIG_DIRS: &str = "XDG_CONFIG_DIRS"; const XDG_CONFIG_DIRS: &str = "XDG_CONFIG_DIRS";
static HOME: &str = "HOME"; const HOME: &str = "HOME";
fn main() { fn main() {
let cli = Cli::parse(); let cli = Cli::parse();