Compare commits

..

2 commits

Author SHA1 Message Date
27d84c8a82
add master branch toggle 2025-06-19 01:40:34 -07:00
f596a050ab
mention quickshell package in nixpkgs 2025-06-19 00:30:12 -07:00
3 changed files with 17 additions and 3 deletions

View file

@ -7,6 +7,7 @@
nodejs,
cacert,
quickshell-types ? null,
masterBranch ? false,
}: stdenv.mkDerivation (final: let
nodeModules = stdenv.mkDerivation {
pname = "${final.pname}-node_modules";
@ -69,6 +70,7 @@ in {
'';
PRODUCTION = true;
MASTER_BRANCH = masterBranch;
SECRET_MODULES_PATH = if quickshell-types == null then "" else quickshell-types;
buildPhase = ''

View file

@ -57,8 +57,18 @@ const types = {
})
),
};
const masterBranch = import.meta.env.MASTER_BRANCH;
---
<nav class="navtree">
{masterBranch && <Link
title="Docs Version: Master Branch (Switch)"
link=`https://quickshell.outfoxxed.me${Astro.url.pathname}`
/>}
{!masterBranch && <Link
title="Docs Version: Release 0.1.0 (Switch)"
link=`https://quickshell-master.outfoxxed.me${Astro.url.pathname}`
/>}
<Link
title="About Quickshell"
link="/docs/about"

View file

@ -11,7 +11,9 @@ index: 0
All packages currently track quickshell's master branch. This may change in the future.
### Nix
The Quickshell repo has an embedded flake.
Quickshell releases are packaged in nixpkgs as `quickshell`.
The Quickshell repo also has an embedded flake.
You can use either `git+https://git.outfoxxed.me/outfoxxed/quickshell`
or `github:quickshell-mirror/quickshell`. Use `?ref=` to specify a tag
if you want a tagged release.
@ -22,8 +24,8 @@ if you want a tagged release.
nixpkgs.url = "nixpkgs/nixos-unstable";
quickshell = {
# remove ?ref=v0.1.0 to track the master branch
url = "git+https://git.outfoxxed.me/outfoxxed/quickshell?ref=v0.1.0";
# add ?ref=<tag> to track a tag
url = "git+https://git.outfoxxed.me/outfoxxed/quickshell";
# THIS IS IMPORTANT
# Mismatched system dependencies will lead to crashes and other issues.