chscheme fixed, panda3ds package add to overlay

This commit is contained in:
2024-11-15 18:02:35 -05:00
parent 1bb3aca17b
commit 8aaa441bb2
3 changed files with 35 additions and 2 deletions

View File

@@ -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 '<nixpkgs>' -A base16-schemes)"/share/themes | \
sed 's/\.yaml//g' | \
fzf --preview "cat \"$(nix-build '<nixpkgs>' -A base16-schemes)/share/themes/{}.yaml\" | \
fzf --preview "cat $(nix-build '<nixpkgs>' -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 '\"'); \

View File

@@ -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 {};
};
}

View File

@@ -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;
};
}