diff --git a/modules/home/scripts/wm-controls/chscheme.nix b/modules/home/scripts/wm-controls/chscheme.nix index 9109f58..6406cf4 100755 --- a/modules/home/scripts/wm-controls/chscheme.nix +++ b/modules/home/scripts/wm-controls/chscheme.nix @@ -1,11 +1,11 @@ { pkgs }: pkgs.writeShellApplication { name = "chscheme"; - runtimeInputs = with pkgs; [ fzf coreutils ]; + runtimeInputs = with pkgs; [ base16-schemes fzf coreutils ]; text = '' selected_scheme=$(/usr/bin/env ls "$(nix-build '' -A base16-schemes)"/share/themes | \ sed 's/\.yaml//g' | \ - fzf --preview "cat \"$(nix-build '' -A base16-schemes)/share/themes/{}.yaml\" | \ + fzf --preview "cat $(nix-build '' -A base16-schemes)/share/themes/{}.yaml | \ while IFS=\": \" read -r key value; do \ if [[ \$key =~ base0[0-9A-F] ]]; then \ clean_value=\$(echo \"\$value\" | tr -d '\"'); \ diff --git a/overlay/overlay.nix b/overlay/overlay.nix index 3a96145..20156f1 100644 --- a/overlay/overlay.nix +++ b/overlay/overlay.nix @@ -4,5 +4,6 @@ self: super: { tinyfetch = super.callPackage ./tinyfetch/package.nix {}; breezex-cursor = super.callPackage ./breezex-cursor/package.nix {}; check_updates = super.callPackage ./check_updates/package.nix {}; + panda3ds = super.callPackage ./panda3ds/package.nix {}; }; } diff --git a/overlay/panda3ds/package.nix b/overlay/panda3ds/package.nix new file mode 100644 index 0000000..1022785 --- /dev/null +++ b/overlay/panda3ds/package.nix @@ -0,0 +1,32 @@ +{ + stdenvNoCC, + fetchzip, + autoPatchelfHook, + lib +}: + +stdenvNoCC.mkDerivation rec { + pname = "panda3ds-qt"; + version = "0.8"; + + src = fetchzip { + url = "https://github.com/wheremyfoodat/Panda3DS/releases/download/v${version}/Linux-Qt.zip"; + sha256 = "1629yaa4xf7di0lmb5jwdggwpsrxcnlcj122px6qyvkmg8fa5q7m"; + }; + + nativeBuildInputs = [ autoPatchelfHook ]; + + installPhase = '' + runHook preInstall + install -Dm755 Alber-x86_64.AppImage $out/bin + runHook postInstall + ''; + + meta = { + description = ""; + homepage = ""; + mainProgram = ""; + maintainers = ""; + platforms = lib.platforms.linux; + }; +}