Skip to content

Commit

Permalink
nix: Use cmake project version helper
Browse files Browse the repository at this point in the history
  • Loading branch information
vimpostor committed Sep 9, 2024
1 parent 62f7149 commit 0828d75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
packages = {
default = pkgs.stdenv.mkDerivation {
pname = "quickcurver";
version = builtins.head (builtins.match ".*project\\([[:alnum:]]+ VERSION ([0-9]+\.[0-9]+).*" (builtins.readFile ./CMakeLists.txt));
version = quartz.lib.cmakeProjectVersion ./CMakeLists.txt;

src = ./.;

Expand All @@ -27,7 +27,7 @@
qt6.qtdeclarative
qt6.qtsvg
];
cmakeFlags = quartz.cmakeWrapper { inherit pkgs; cmakeFile = ./CMakeLists.txt; };
cmakeFlags = quartz.lib.cmakeWrapper { inherit pkgs; cmakeFile = ./CMakeLists.txt; };
postBuild = "make linux-desktop-integration";
};
};
Expand Down

0 comments on commit 0828d75

Please sign in to comment.