Skip to content

Commit f2c8e02

Browse files
committed
nix: Use cmake project version helper
1 parent a1b30b6 commit f2c8e02

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
defaultStdenv = (builtins.head stdenvs).name;
1212
makeStdenvPkg = env: env.mkDerivation {
1313
pname = "blobdrop";
14-
version = builtins.head (builtins.match ".*project\\([[:alnum:]]+ VERSION ([0-9]+\.[0-9]+).*" (builtins.readFile ./CMakeLists.txt));
14+
version = quartz.lib.cmakeProjectVersion ./CMakeLists.txt;
1515

1616
src = ./.;
1717

@@ -28,7 +28,7 @@
2828
xorg.xcbutilwm
2929
];
3030

31-
cmakeFlags = quartz.cmakeWrapper { inherit pkgs; cmakeFile = ./CMakeLists.txt; };
31+
cmakeFlags = quartz.lib.cmakeWrapper { inherit pkgs; cmakeFile = ./CMakeLists.txt; };
3232
};
3333
in {
3434
packages = {

0 commit comments

Comments
 (0)