mirror of
https://github.com/hyprwm/hyprland-protocols.git
synced 2024-11-08 06:45:59 +01:00
Meson, Nix: add VERSION file
This commit is contained in:
parent
1b61f0093a
commit
01fc77926a
3 changed files with 5 additions and 3 deletions
1
VERSION
Normal file
1
VERSION
Normal file
|
@ -0,0 +1 @@
|
|||
0.3.0
|
|
@ -25,11 +25,12 @@
|
|||
(builtins.substring 4 2 longDate)
|
||||
(builtins.substring 6 2 longDate)
|
||||
]);
|
||||
version = "0.1" + "+date=" + (mkDate (self.lastModifiedDate or "19700101")) + "_" + (self.shortRev or "dirty");
|
||||
version = lib.removeSuffix "\n" (builtins.readFile ./VERSION);
|
||||
in {
|
||||
overlays = {
|
||||
hyprland-protocols = final: prev: {
|
||||
hyprland-protocols = final.callPackage ./nix/default.nix {inherit version;};
|
||||
version = version + "+date=" + (mkDate (self.lastModifiedDate or "19700101")) + "_" + (self.shortRev or "dirty");
|
||||
};
|
||||
default = self.overlays.hyprland-protocols;
|
||||
};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
project('hyprland-protocols',
|
||||
version: '0.3.0',
|
||||
meson_version: '>= 0.55.0',
|
||||
version: run_command('cat', 'VERSION', check: true).stdout().strip(),
|
||||
meson_version: '>= 0.60.3',
|
||||
)
|
||||
|
||||
hyprland_protocols_version = meson.project_version()
|
||||
|
|
Loading…
Reference in a new issue