Skip to content

Instantly share code, notes, and snippets.

View chadcatlett's full-sized avatar

Chad Catlett chadcatlett

  • Somewhere in Texas
View GitHub Profile
{ lib
, stdenv
, fetchFromGitHub
, SDL2
, callPackage
, cmake
#, espeak-ng
, ffmpeg
, file
, freetype
{ config, lib, pkgs, ... }:
let
srcPkgs = import /src {
overlays = [ (
final: prev: {
mesa = pkgs.callPackage ./apple-silicon-support/packages/mesa-asahi-edge {};
arcane = pkgs.callPackage ./apple-silicon-support/packages/arcan {mesa = final.mesa; } ;
m1n1 = pkgs.callPackage ./apple-silicon-support/packages/m1n1 {} ;
firefox = (pkgs.wrapFirefox.override { libpulseaudio = pkgs.libpressureaudio; }) pkgs.firefox-unwrapped { };
}
@kizzx2
kizzx2 / with-env.ps1
Last active February 26, 2025 21:11
Run command with environment variables in PowerShell
$ori = @{}
Try {
$i = 0
# Loading .env files
if(Test-Path $args[0]) {
foreach($line in (Get-Content $args[0])) {
if($line -Match '^\s*$' -Or $line -Match '^#') {
continue
}