From ca9047901ad587772daa64fc6b0403e8607e6f2a Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Fri, 11 Sep 2026 15:40:31 -0400 Subject: [PATCH] cmd for qt --- .flox/env/manifest.lock | 90 +++++++++++++++++++++++++++++++++++++++++ .flox/env/manifest.toml | 1 + package.nix | 8 +++- skygqts.nu | 16 ++++++++ 4 files changed, 113 insertions(+), 2 deletions(-) create mode 100755 skygqts.nu diff --git a/.flox/env/manifest.lock b/.flox/env/manifest.lock index 47d3bf0..efa71d1 100644 --- a/.flox/env/manifest.lock +++ b/.flox/env/manifest.lock @@ -7,6 +7,9 @@ "pkg-path": "flox/flox-mcp-server", "pkg-group": "flox-mcp-server" }, + "nushell": { + "pkg-path": "nushell" + }, "qtdeclarative": { "pkg-path": "qt6.qtdeclarative", "outputs": [ @@ -142,6 +145,93 @@ "group": "flox-mcp-server", "priority": 5 }, + { + "attr_path": "nushell", + "broken": false, + "derivation": "/nix/store/2pzb6jhvlkkiijdayq2wx9n2mw0xpaz1-nushell-0.115.1.drv", + "description": "Modern shell written in Rust", + "install_id": "nushell", + "license": "MIT", + "locked_url": "https://github.com/flox/nixpkgs?rev=8ce4ef6cb6f871616146b9fe26d2a5ae594e94fe", + "name": "nushell-0.115.1", + "pname": "nushell", + "rev": "8ce4ef6cb6f871616146b9fe26d2a5ae594e94fe", + "rev_count": 1070770, + "rev_date": "2026-09-10T02:20:05Z", + "scrape_date": "2026-09-11T04:58:31.873641Z", + "stabilities": [ + "unstable" + ], + "unfree": false, + "version": "0.115.1", + "outputs_to_install": [ + "out" + ], + "outputs": { + "out": "/nix/store/4wgp25hm6h6j3axk068ab5zjabcqjmrh-nushell-0.115.1" + }, + "system": "aarch64-darwin", + "group": "toplevel", + "priority": 5 + }, + { + "attr_path": "nushell", + "broken": false, + "derivation": "/nix/store/9x7zbxf92yh0vmnz4aavx2bnk8s8ymm0-nushell-0.115.1.drv", + "description": "Modern shell written in Rust", + "install_id": "nushell", + "license": "MIT", + "locked_url": "https://github.com/flox/nixpkgs?rev=8ce4ef6cb6f871616146b9fe26d2a5ae594e94fe", + "name": "nushell-0.115.1", + "pname": "nushell", + "rev": "8ce4ef6cb6f871616146b9fe26d2a5ae594e94fe", + "rev_count": 1070770, + "rev_date": "2026-09-10T02:20:05Z", + "scrape_date": "2026-09-11T05:31:01.279819Z", + "stabilities": [ + "unstable" + ], + "unfree": false, + "version": "0.115.1", + "outputs_to_install": [ + "out" + ], + "outputs": { + "out": "/nix/store/zwzgkzkzjny50rkvnwyq5lf19d34mkr5-nushell-0.115.1" + }, + "system": "aarch64-linux", + "group": "toplevel", + "priority": 5 + }, + { + "attr_path": "nushell", + "broken": false, + "derivation": "/nix/store/fk1adk9fwg1007pws5lmv9k6r0qav8fc-nushell-0.115.1.drv", + "description": "Modern shell written in Rust", + "install_id": "nushell", + "license": "MIT", + "locked_url": "https://github.com/flox/nixpkgs?rev=8ce4ef6cb6f871616146b9fe26d2a5ae594e94fe", + "name": "nushell-0.115.1", + "pname": "nushell", + "rev": "8ce4ef6cb6f871616146b9fe26d2a5ae594e94fe", + "rev_count": 1070770, + "rev_date": "2026-09-10T02:20:05Z", + "scrape_date": "2026-09-11T06:07:22.808797Z", + "stabilities": [ + "unstable" + ], + "unfree": false, + "version": "0.115.1", + "outputs_to_install": [ + "out" + ], + "outputs": { + "out": "/nix/store/3nggi9yb3pgi89h6z1hw11v6if0vmqia-nushell-0.115.1" + }, + "system": "x86_64-linux", + "group": "toplevel", + "priority": 5 + }, { "attr_path": "qt6.qtdeclarative", "broken": false, diff --git a/.flox/env/manifest.toml b/.flox/env/manifest.toml index f545df1..377a8e8 100644 --- a/.flox/env/manifest.toml +++ b/.flox/env/manifest.toml @@ -17,6 +17,7 @@ flox-mcp-server.pkg-path = "flox/flox-mcp-server" flox-mcp-server.pkg-group = "flox-mcp-server" qtwebengine.pkg-path = "qt6Packages.qtwebengine" qtwebengine.outputs = ["dev", "out"] +nushell.pkg-path = "nushell" ## Environment Variables --------------------------------------------- ## ... available for use in the activated environment diff --git a/package.nix b/package.nix index 2b86337..a258fc7 100644 --- a/package.nix +++ b/package.nix @@ -3,6 +3,7 @@ stdenvNoCC, makeWrapper, quickshell, + nushell, }: stdenvNoCC.mkDerivation { @@ -13,6 +14,7 @@ stdenvNoCC.mkDerivation { root = ./.; fileset = lib.fileset.unions [ ./app-carousel + ./skygqts.nu ]; }; @@ -24,9 +26,11 @@ stdenvNoCC.mkDerivation { runHook preInstall mkdir -p $out/share/skygqts cp -r app-carousel $out/share/skygqts/ + cp skygqts.nu $out/share/skygqts/ mkdir -p $out/bin - makeWrapper ${lib.getExe quickshell} $out/bin/skygqts \ - --add-flags "-p $out/share/skygqts/app-carousel" + makeWrapper ${lib.getExe nushell} $out/bin/skygqts \ + --add-flags "$out/share/skygqts/skygqts.nu" \ + --prefix PATH : ${lib.makeBinPath [ quickshell ]} runHook postInstall ''; diff --git a/skygqts.nu b/skygqts.nu new file mode 100755 index 0000000..1b18eef --- /dev/null +++ b/skygqts.nu @@ -0,0 +1,16 @@ +#!/usr/bin/env nu + +const REPO_ROOT = path self | path dirname + +# Quickshell SKYG apps +def "main" [] { + help main +} + +# Run the app carousel +def "main carousel" [ + path_to_config: string # path to JSON config +] { + $env.SKYG_APP_CAROUSEL = $path_to_config + qs -p ($REPO_ROOT | path join "app-carousel") +}