Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
28f5f4faa9
|
||
|
|
1007450e19 | ||
|
|
1be2731c53
|
||
|
|
b8d108f173 | ||
|
|
366a895a08
|
||
|
|
7ceef4775c |
Generated
+15
-15
@@ -8,11 +8,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1787559586,
|
"lastModified": 1788450739,
|
||||||
"narHash": "sha256-onL0VLf9vPllmT0H/OlURIU5r5t5WIEl7t4tVNKT0Nw=",
|
"narHash": "sha256-glZLQlzIn1fXH6PazR2iUmTo7kzzyYSshrWhLS9TqCU=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "9d0d87172c374f89da73c1cfe6d81ae62feac1f1",
|
"rev": "31729ca8cbdb4fa927b34e5f4353e6a83f39e993",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -28,11 +28,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1787797243,
|
"lastModified": 1789430117,
|
||||||
"narHash": "sha256-8+Q7NOB7RPajRjA4pbCDLzqH+MTjnG9x6LUPLfL2joA=",
|
"narHash": "sha256-t+U1mijItLJ64xZOifpfQ17kpAL73nU7pDI48ScacVc=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "99c9ec63390f1d8c14d95d9e8b17cc29cfbd4e11",
|
"rev": "cda90fd8838825c689fde9d3f3b4e937937790df",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -43,11 +43,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1787900134,
|
"lastModified": 1789286504,
|
||||||
"narHash": "sha256-VYXO0XZlgj06dxJZRhrD3WoSsvq/c7+/Akyoa22pefw=",
|
"narHash": "sha256-eiEK7cKZORNEvX0GeF3RtNEF/JXhgf2RqSp3230q13E=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "83199d0d373dd3ac2b9a1996b1d0263f76ab7a4c",
|
"rev": "ef34387ddd751e1ab8857adf4676492d32eb24ec",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -66,11 +66,11 @@
|
|||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1787862710,
|
"lastModified": 1789344271,
|
||||||
"narHash": "sha256-dL1Tv7LekaTWUJxHRckjbupWczDdc3QOgRuVCM+WAvQ=",
|
"narHash": "sha256-ezmg5oQSZWYdmomx6K1J+/6w7dRc7bquDMggc8eAE28=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixvim",
|
"repo": "nixvim",
|
||||||
"rev": "8c096abcf376137527c134da4ee210332b08ccc0",
|
"rev": "afcfb8c1dc075881bbaa6fa5745aebbdb179f8b8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -86,11 +86,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1788099672,
|
"lastModified": 1789436433,
|
||||||
"narHash": "sha256-t4Rw5OeULK/WA2Jh9ja615sCs2AmvahkAUx/ymdf2YQ=",
|
"narHash": "sha256-/Dy5P/7nCIss+uAhdF+8I59ww5WQUF4EBs1QJCB1aec=",
|
||||||
"owner": "noctalia-dev",
|
"owner": "noctalia-dev",
|
||||||
"repo": "noctalia-shell",
|
"repo": "noctalia-shell",
|
||||||
"rev": "d891007c022a3a1d4484495fe8b350a00deafae9",
|
"rev": "e4eb0ff97743c1d07d0f5a0d5770b277b6485b03",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -23,6 +23,35 @@
|
|||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Unlike oh-my-zsh.extraConfig above, this lands *after*
|
||||||
|
# `source $ZSH/oh-my-zsh.sh`, which is where the theme's prompt functions
|
||||||
|
# come into existence.
|
||||||
|
initContent = lib.mkAfter ''
|
||||||
|
# Keep the prompt on one line in deeply nested trees.
|
||||||
|
#
|
||||||
|
# Both themes render the working directory as `%~`, the full path with
|
||||||
|
# $HOME collapsed to `~`. Somewhere like
|
||||||
|
# ~/git/bfh/cas-pml-sem/documents/bericht that is 39 columns on its own,
|
||||||
|
# and together with user@host and a long branch name the line wraps.
|
||||||
|
#
|
||||||
|
# `%(4~|…/%2~|%~)` is a prompt ternary: at four or more components show
|
||||||
|
# an ellipsis and the last two, otherwise show the path whole. Short
|
||||||
|
# paths like ~/git/nixconfig are left alone.
|
||||||
|
if [[ "$ZSH_THEME" == "agnoster" ]]; then
|
||||||
|
# agnoster calls prompt_dir on every render, so redefining it is
|
||||||
|
# enough. AGNOSTER_DIR_* keep the segment's own colours.
|
||||||
|
prompt_dir() {
|
||||||
|
prompt_segment "$AGNOSTER_DIR_BG" "$AGNOSTER_DIR_FG" '%(4~|…/%2~|%~)'
|
||||||
|
}
|
||||||
|
else
|
||||||
|
# gentoo builds PROMPT once at load time, so patch the string. Its
|
||||||
|
# `%~` is the non-root branch of `%(!.%1~.%~)`, and it is the first
|
||||||
|
# literal `%~` in there, so the root branch is untouched. ASCII `...`
|
||||||
|
# because this branch is the Linux console, whose font may lack U+2026.
|
||||||
|
PROMPT="''${PROMPT/\%~/%(4~|.../%2~|%~)}"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# set important env vars
|
# set important env vars
|
||||||
|
|||||||
+14
-2
@@ -15,7 +15,15 @@ let
|
|||||||
# on PATH. nixpkgs only *propagates* python3 from the siril derivation (it
|
# on PATH. nixpkgs only *propagates* python3 from the siril derivation (it
|
||||||
# isn't on the runtime PATH), so without the --prefix PATH below the GUI
|
# isn't on the runtime PATH), so without the --prefix PATH below the GUI
|
||||||
# fails with "Python not found in system PATH" and never creates
|
# fails with "Python not found in system PATH" and never creates
|
||||||
# ~/.local/share/siril/venv. We add the same interpreter siril references.
|
# ~/.local/share/siril/venv.
|
||||||
|
#
|
||||||
|
# We deliberately do NOT put ${pkgs.python3}/bin on PATH directly: `venv`
|
||||||
|
# symlinks bin/python3 to whatever sys.executable was, so the venv would
|
||||||
|
# hard-link a /nix/store hash that gets garbage-collected after the next
|
||||||
|
# python bump, leaving a dangling symlink ("Error finding venv python
|
||||||
|
# path, unable to spawn python"). Instead we go through the stable
|
||||||
|
# /etc/siril/bin/python3 symlink (see environment.etc below), which NixOS
|
||||||
|
# re-points at the current python on every rebuild.
|
||||||
#
|
#
|
||||||
# The VeraLux PyQt6 wheel ships only the built-in Windows/Fusion styles, so
|
# The VeraLux PyQt6 wheel ships only the built-in Windows/Fusion styles, so
|
||||||
# the global QT_STYLE_OVERRIDE=adwaita-dark (inherited from the session) is
|
# the global QT_STYLE_OVERRIDE=adwaita-dark (inherited from the session) is
|
||||||
@@ -26,7 +34,7 @@ let
|
|||||||
# ignored again (harmless warning + Fusion fallback, no loss of function).
|
# ignored again (harmless warning + Fusion fallback, no loss of function).
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
wrapProgram $out/bin/siril \
|
wrapProgram $out/bin/siril \
|
||||||
--prefix PATH : ${lib.makeBinPath [ pkgs.python3 ]} \
|
--prefix PATH : /etc/siril/bin \
|
||||||
--prefix QT_PLUGIN_PATH : ${pkgs.adwaita-qt6}/lib/qt-6/plugins \
|
--prefix QT_PLUGIN_PATH : ${pkgs.adwaita-qt6}/lib/qt-6/plugins \
|
||||||
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath (with pkgs; [
|
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath (with pkgs; [
|
||||||
stdenv.cc.cc.lib # libstdc++ / libgcc_s / libgomp (numpy etc.)
|
stdenv.cc.cc.lib # libstdc++ / libgcc_s / libgomp (numpy etc.)
|
||||||
@@ -62,6 +70,10 @@ in
|
|||||||
sirilWithPlugins
|
sirilWithPlugins
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Stable, GC-safe interpreter path for Siril's venv (see sirilWithPlugins).
|
||||||
|
# Same python as siril itself propagates, so sirilpy's ABI matches.
|
||||||
|
environment.etc."siril/bin/python3".source = "${pkgs.python3}/bin/python3";
|
||||||
|
|
||||||
# StarNet++ has no nixpkgs package. Download the StarNet v2 ORT CLI build
|
# StarNet++ has no nixpkgs package. Download the StarNet v2 ORT CLI build
|
||||||
# (starnet2_linux_*_ORT_x64_cli) from https://www.starnetastro.com/download/
|
# (starnet2_linux_*_ORT_x64_cli) from https://www.starnetastro.com/download/
|
||||||
# and unzip it to ~/.local/share/siril/starnet/. Then in Siril set
|
# and unzip it to ~/.local/share/siril/starnet/. Then in Siril set
|
||||||
|
|||||||
Reference in New Issue
Block a user