+/config
my dotfiles and nix configuration
git clone https://git.julia.blue/+/config
504a1b6
main
1{ lib , stdenv , fetchFromGitHub , makeDesktopItem , pkgs } :stdenv . mkDerivation rec { 2pname = "circuit-artist" ; 3version = "2026-01-06" ; 4 5src = fetchFromGitHub { 6owner = "lets-all-be-stupid-forever" ; 7repo = "circuit-artist" ; 8rev = "68b5f25eb16098e852f9ae98eb2141bd172e6b55" ; 9hash = "sha256-FuGeNPXO2CWuiZu7Tz2go1eRQqyYZOwpzHmMiw6yb98=" ; 10fetchSubmodules = true ; 11}; 12 13nativeBuildInputs = with pkgs ; [ cmake pkg-config makeWrapper copyDesktopItems ]; 14 15buildInputs = with pkgs ; [ 16raylib 17gtk3 18glib 19libxrandr 20libxinerama 21libxcursor 22libxi 23]; 24 25cmakeBuildTarget = "ca" ; 26 27installPhase = '' 28runHook preInstall 29 30mkdir -p $ out /bin 31cp -r $ src /assets $ src /solutions $ out 32mkdir -p $ out /share/icons/hicolor/32x32/apps 33cp $ src /assets/icon32.png $ out /share/icons/hicolor/32x32/apps/circuit-artist.png 34mv ca $ out /bin/ca-unwrapped 35makeWrapper $ out /bin/ca-unwrapped $ out /bin/ca \ 36--run 'export data_dir="'' $ { XDG_DATA_HOME:- $ HOME /.local/share}/circuit-artist "' \ 37--run 'mkdir -p " $ data_dir/bin"' \ 38--run 'cd " $ data_dir/bin"' \ 39--run "ln -sfn $ out /assets ../assets" 40 41runHook postInstall 42'' ; 43 44desktopItems = [ 45( makeDesktopItem { 46name = pname ; 47desktopName = pname ; 48exec = "ca" ; 49icon = "circuit-artist" ; 50}) 51]; 52 53meta = { 54description = "Digital circuit drawing and simulation game" ; 55homepage = "https://github.com/lets-all-be-stupid-forever/circuit-artist" ; 56license = lib . licenses . gpl3Only ; 57mainProgram = "ca" ; 58platforms = lib . platforms . linux ; 59}; 60}