termfilechooser

This commit is contained in:
Miguel Palhas
2026-02-17 20:35:11 +00:00
parent abdf71f7dc
commit a5089b77e9
12 changed files with 63 additions and 230 deletions
-29
View File
@@ -1,29 +0,0 @@
{ pkgs, ... }:
pkgs.stdenv.mkDerivation {
pname = "sddm-astronaut-theme";
version = "1.0-pixel-sakura-v2";
src = pkgs.fetchFromGitHub {
owner = "Keyitdev";
repo = "sddm-astronaut-theme";
rev = "master";
sha256 = "sha256-+94WVxOWfVhIEiVNWwnNBRmN+d1kbZCIF10Gjorea9M=";
};
installPhase = ''
mkdir -p $out/share/sddm/themes/sddm-astronaut-theme
cp -r * $out/share/sddm/themes/sddm-astronaut-theme/
# Override the theme variant to pixel_sakura
sed -i 's|ConfigFile=Themes/astronaut.conf|ConfigFile=Themes/pixel_sakura.conf|' \
$out/share/sddm/themes/sddm-astronaut-theme/metadata.desktop
'';
meta = with pkgs.lib; {
description = "Modern astronaut-themed SDDM login theme";
homepage = "https://github.com/Keyitdev/sddm-astronaut-theme";
license = licenses.gpl3;
platforms = platforms.linux;
};
}
+34
View File
@@ -0,0 +1,34 @@
{ pkgs, ... }:
pkgs.stdenv.mkDerivation {
pname = "sddm-noctalia-theme";
version = "1.0";
src = pkgs.fetchFromGitHub {
owner = "mahaveergurjar";
repo = "sddm";
rev = "noctalia";
sha256 = "1a9xb9hkci2bkfmq04lhd66aa60kkf97c16knrm4sgpwqdpvzba1";
};
installPhase = ''
mkdir -p $out/share/sddm/themes/sddm-noctalia
cp -r * $out/share/sddm/themes/sddm-noctalia/
# Patch for Qt6 SDDM greeter compatibility
# SDDM reads QtVersion from metadata.desktop to find the greeter binary;
# default is 5 (sddm-greeter), we need 6 (sddm-greeter-qt6)
substituteInPlace $out/share/sddm/themes/sddm-noctalia/metadata.desktop \
--replace-fail "Theme-Id=noctalia" "QtVersion=6
Theme-Id=noctalia"
substituteInPlace $out/share/sddm/themes/sddm-noctalia/Main.qml \
--replace-fail "import QtGraphicalEffects 1.12" "import Qt5Compat.GraphicalEffects"
'';
meta = with pkgs.lib; {
description = "Noctalia-themed SDDM login theme";
homepage = "https://github.com/mahaveergurjar/sddm/tree/noctalia";
license = licenses.gpl3;
platforms = platforms.linux;
};
}
-80
View File
@@ -1,80 +0,0 @@
{
lib,
stdenv,
fetchurl,
autoPatchelfHook,
zlib,
libgcc,
}:
let
# Latest nightly as of 2026-02-11
version = "nightly-ff2dc8bdde83aaefb4abaf73b7ac27059edeef25";
# Platform-specific binary selection
sources = {
x86_64-linux = {
url = "https://github.com/tempoxyz/tempo-foundry/releases/download/${version}/foundry_nightly_linux_amd64.tar.gz";
hash = "sha256-0zpZpHEJ8m0YD0C4VqmFqmdneJHKjATawJO6fu5b6Og=";
};
aarch64-linux = {
url = "https://github.com/tempoxyz/tempo-foundry/releases/download/${version}/foundry_nightly_linux_arm64.tar.gz";
hash = lib.fakeSha256; # Update if building on aarch64-linux
};
x86_64-darwin = {
url = "https://github.com/tempoxyz/tempo-foundry/releases/download/${version}/foundry_nightly_darwin_amd64.tar.gz";
hash = lib.fakeSha256; # Update if building on darwin
};
aarch64-darwin = {
url = "https://github.com/tempoxyz/tempo-foundry/releases/download/${version}/foundry_nightly_darwin_arm64.tar.gz";
hash = lib.fakeSha256; # Update if building on darwin
};
};
platform = sources.${stdenv.hostPlatform.system} or (throw "Unsupported platform: ${stdenv.hostPlatform.system}");
in
stdenv.mkDerivation {
pname = "tempo-foundry-bin";
inherit version;
src = fetchurl {
inherit (platform) url hash;
};
nativeBuildInputs = lib.optionals stdenv.isLinux [ autoPatchelfHook ];
buildInputs = lib.optionals stdenv.isLinux [
zlib
libgcc
];
dontBuild = true;
dontConfigure = true;
sourceRoot = ".";
installPhase = ''
runHook preInstall
mkdir -p $out/bin
# Install binaries (Tempo fork includes forge, cast, anvil, chisel)
for bin in forge cast anvil chisel; do
if [ -f "$bin" ]; then
install -m755 -D "$bin" "$out/bin/$bin"
fi
done
runHook postInstall
'';
meta = {
description = "Tempo's fork of Foundry - portable and modular toolkit for Ethereum development with Tempo protocol features";
homepage = "https://github.com/tempoxyz/tempo-foundry";
license = with lib.licenses; [ mit asl20 ];
maintainers = [ ];
platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
mainProgram = "forge";
};
}