Rules-based browser launcher for TUI + GNOME. switchyard.aly.codes
tui gome bowser go
0

Configure Feed

Select the types of activity you want to include in your feed.

nix: move package to package.nix

Aly Raffauf (Jun 23, 2026, 2:28 PM EDT) c4059bc3 10000ba8

+52 -42
+1 -42
flake/packages.nix
··· 17 17 build-system = with pkgs.python3.pkgs; [setuptools]; 18 18 }; 19 19 20 - switchyard = pkgs.buildGoModule { 21 - pname = "switchyard"; 22 - version = "dev"; 23 - src = inputs.self; 24 - vendorHash = "sha256-1rEtf5QJA5xaeL0LRp13dwtPCH+DM5Wp4kJXBBqNtEg="; 25 - subPackages = ["src"]; 26 - 27 - buildPhase = '' 28 - runHook preBuild 29 - go build -trimpath -ldflags="-s -w" -o $GOPATH/bin/switchyard ./src 30 - runHook postBuild 31 - ''; 32 - 33 - nativeBuildInputs = with pkgs; [ 34 - pkg-config 35 - wrapGAppsHook4 36 - ]; 37 - 38 - buildInputs = with pkgs; [ 39 - glib 40 - gobject-introspection 41 - gtk4 42 - libadwaita 43 - pkg-config 44 - ]; 45 - 46 - postInstall = '' 47 - install -Dm644 data/io.github.alyraffauf.Switchyard.desktop \ 48 - $out/share/applications/io.github.alyraffauf.Switchyard.desktop 49 - 50 - install -Dm644 data/icons/hicolor/scalable/apps/io.github.alyraffauf.Switchyard.svg \ 51 - $out/share/icons/hicolor/scalable/apps/io.github.alyraffauf.Switchyard.svg 52 - ''; 53 - 54 - meta = with pkgs.lib; { 55 - description = "A configurable default browser for Linux"; 56 - homepage = "https://github.com/alyraffauf/switchyard"; 57 - license = licenses.gpl3Plus; 58 - platforms = platforms.linux; 59 - mainProgram = "switchyard"; 60 - }; 61 - }; 20 + switchyard = pkgs.callPackage ../package.nix {}; 62 21 }; 63 22 }; 64 23 }
+51
package.nix
··· 1 + { 2 + buildGoModule, 3 + glib, 4 + gobject-introspection, 5 + gtk4, 6 + libadwaita, 7 + lib, 8 + pkg-config, 9 + wrapGAppsHook4, 10 + }: 11 + buildGoModule { 12 + pname = "switchyard"; 13 + version = "dev"; 14 + src = ./.; 15 + vendorHash = "sha256-1rEtf5QJA5xaeL0LRp13dwtPCH+DM5Wp4kJXBBqNtEg="; 16 + subPackages = ["src"]; 17 + 18 + ldflags = [ 19 + "-s" 20 + "-w" 21 + ]; 22 + 23 + nativeBuildInputs = [ 24 + pkg-config 25 + wrapGAppsHook4 26 + ]; 27 + 28 + buildInputs = [ 29 + glib 30 + gobject-introspection 31 + gtk4 32 + libadwaita 33 + pkg-config 34 + ]; 35 + 36 + postInstall = '' 37 + install -Dm644 data/io.github.alyraffauf.Switchyard.desktop \ 38 + $out/share/applications/io.github.alyraffauf.Switchyard.desktop 39 + 40 + install -Dm644 data/icons/hicolor/scalable/apps/io.github.alyraffauf.Switchyard.svg \ 41 + $out/share/icons/hicolor/scalable/apps/io.github.alyraffauf.Switchyard.svg 42 + ''; 43 + 44 + meta = with lib; { 45 + description = "A configurable default browser for Linux"; 46 + homepage = "https://github.com/alyraffauf/switchyard"; 47 + license = licenses.gpl3Plus; 48 + platforms = platforms.linux; 49 + mainProgram = "switchyard"; 50 + }; 51 + }