From e561b82d1e2b0d0998ccbef316014297f3468fb6 Mon Sep 17 00:00:00 2001 From: Grimmauld Date: Thu, 16 May 2024 11:10:12 +0200 Subject: [PATCH] some more cleanup --- Cargo.toml | 2 -- flake.nix | 16 +--------------- src/main.rs | 6 +++--- 3 files changed, 4 insertions(+), 20 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7ab8100..930d463 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,8 +6,6 @@ authors = [ "Grimmauld " ] description = "Search for config files in XDG_CONFIG_DIRS" license-file = "LICENSE" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] clap = {version="4.5.4", features = ["derive"]} clap-stdin = {version="0.4.0"} diff --git a/flake.nix b/flake.nix index d1a7039..a1e7410 100644 --- a/flake.nix +++ b/flake.nix @@ -22,12 +22,7 @@ libPath = with pkgs; lib.makeLibraryPath [ - # load external libraries that you need in your rust project here - glib - gtk3 - libsoup_3 - networkmanager - webkitgtk_4_1 + ]; in { @@ -85,14 +80,5 @@ default = confwhich-pkg; } ); - - nixosModules = - let - confwhich-module = (import ./nix/rmenu.nix); - in - { - rmenu = confwhich-module; - default = confwhich-module; - }; }; } diff --git a/src/main.rs b/src/main.rs index 72784cd..5c460b9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,9 +7,9 @@ use std::fs; use std::process::exit; use std::string::String; -static XDG_CONFIG_HOME: &str = "XDG_CONFIG_HOME"; -static XDG_CONFIG_DIRS: &str = "XDG_CONFIG_DIRS"; -static HOME: &str = "HOME"; +const XDG_CONFIG_HOME: &str = "XDG_CONFIG_HOME"; +const XDG_CONFIG_DIRS: &str = "XDG_CONFIG_DIRS"; +const HOME: &str = "HOME"; fn main() { let cli = Cli::parse();