hypr-chrome v0.1.1 (#7)

---------

Co-authored-by: gitea-actions <actions@noreply.localhost>
Reviewed-on: #7
This commit was merged in pull request #7.
This commit is contained in:
2026-07-30 00:10:38 +02:00
co-authored by gitea-actions
parent a28a899874
commit 5c2ed492d6
5 changed files with 117 additions and 2 deletions
+11 -1
View File
@@ -18,13 +18,23 @@
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
# Read from .env (also read by CMakeLists.txt) rather than a separate
# hardcoded string, so .gitea/workflows/version-bump.yml only ever has
# to touch that one file for both build systems to stay in sync.
pluginVersion =
let
envLines = pkgs.lib.splitString "\n" (builtins.readFile ./.env);
versionLine = pkgs.lib.findFirst (pkgs.lib.hasPrefix "PLUGIN_VERSION=") null envLines;
in
pkgs.lib.removePrefix "PLUGIN_VERSION=" versionLine;
in
{
# Build with Hyprland's own stdenv (not nixpkgs' default one) so the
# compiler/libstdc++ ABI matches what Hyprland itself was built with.
packages.${system}.default = pkgs.hyprland.stdenv.mkDerivation {
pname = "hypr-chrome";
version = "0.1";
version = pluginVersion;
src = self;
nativeBuildInputs = [ pkgs.cmake pkgs.pkg-config ];