chscheme fixed, panda3ds package add to overlay
This commit is contained in:
@@ -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 '\"'); \
|
||||
|
||||
@@ -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 {};
|
||||
};
|
||||
}
|
||||
|
||||
32
overlay/panda3ds/package.nix
Normal file
32
overlay/panda3ds/package.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user