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 a1b30b6 commit f2c8e02
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 @@ -11,7 +11,7 @@
defaultStdenv = (builtins.head stdenvs).name;
makeStdenvPkg = env: env.mkDerivation {
pname = "blobdrop";
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 @@ -28,7 +28,7 @@
xorg.xcbutilwm
];

cmakeFlags = quartz.cmakeWrapper { inherit pkgs; cmakeFile = ./CMakeLists.txt; };
cmakeFlags = quartz.lib.cmakeWrapper { inherit pkgs; cmakeFile = ./CMakeLists.txt; };
};
in {
packages = {
Expand Down

0 comments on commit f2c8e02

Please sign in to comment.