Compare commits
2 commits
fd9cd4f3fd
...
27d84c8a82
Author | SHA1 | Date | |
---|---|---|---|
27d84c8a82 | |||
f596a050ab |
3 changed files with 17 additions and 3 deletions
|
@ -7,6 +7,7 @@
|
||||||
nodejs,
|
nodejs,
|
||||||
cacert,
|
cacert,
|
||||||
quickshell-types ? null,
|
quickshell-types ? null,
|
||||||
|
masterBranch ? false,
|
||||||
}: stdenv.mkDerivation (final: let
|
}: stdenv.mkDerivation (final: let
|
||||||
nodeModules = stdenv.mkDerivation {
|
nodeModules = stdenv.mkDerivation {
|
||||||
pname = "${final.pname}-node_modules";
|
pname = "${final.pname}-node_modules";
|
||||||
|
@ -69,6 +70,7 @@ in {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
PRODUCTION = true;
|
PRODUCTION = true;
|
||||||
|
MASTER_BRANCH = masterBranch;
|
||||||
SECRET_MODULES_PATH = if quickshell-types == null then "" else quickshell-types;
|
SECRET_MODULES_PATH = if quickshell-types == null then "" else quickshell-types;
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
|
|
@ -57,8 +57,18 @@ const types = {
|
||||||
})
|
})
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const masterBranch = import.meta.env.MASTER_BRANCH;
|
||||||
---
|
---
|
||||||
<nav class="navtree">
|
<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
|
<Link
|
||||||
title="About Quickshell"
|
title="About Quickshell"
|
||||||
link="/docs/about"
|
link="/docs/about"
|
||||||
|
|
|
@ -11,7 +11,9 @@ index: 0
|
||||||
All packages currently track quickshell's master branch. This may change in the future.
|
All packages currently track quickshell's master branch. This may change in the future.
|
||||||
|
|
||||||
### Nix
|
### 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`
|
You can use either `git+https://git.outfoxxed.me/outfoxxed/quickshell`
|
||||||
or `github:quickshell-mirror/quickshell`. Use `?ref=` to specify a tag
|
or `github:quickshell-mirror/quickshell`. Use `?ref=` to specify a tag
|
||||||
if you want a tagged release.
|
if you want a tagged release.
|
||||||
|
@ -22,8 +24,8 @@ if you want a tagged release.
|
||||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
quickshell = {
|
quickshell = {
|
||||||
# remove ?ref=v0.1.0 to track the master branch
|
# add ?ref=<tag> to track a tag
|
||||||
url = "git+https://git.outfoxxed.me/outfoxxed/quickshell?ref=v0.1.0";
|
url = "git+https://git.outfoxxed.me/outfoxxed/quickshell";
|
||||||
|
|
||||||
# THIS IS IMPORTANT
|
# THIS IS IMPORTANT
|
||||||
# Mismatched system dependencies will lead to crashes and other issues.
|
# Mismatched system dependencies will lead to crashes and other issues.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue