tony / oxwm

Merge branch 'master' into lua-config-test Browse files
Emzy committed 2025-11-12 parents ad06fa5 02086b3 commit aa44711516978ca0fdae92cb5b0ebe76a1b77bfd
Showing 2 changed files with 6 additions and 2 deletions. UnifiedSplit
+2 −1 default.nix
@@ -5,10 +5,11 @@
5 xorg, 5 xorg,
6 freetype, 6 freetype,
7 fontconfig, 7 fontconfig,
8 + gitRev ? "unkown",
8 }: 9 }:
9 rustPlatform.buildRustPackage (finalAttrs: { 10 rustPlatform.buildRustPackage (finalAttrs: {
10 pname = "oxwm"; 11 pname = "oxwm";
11 - version = "0.6.0"; 12 + version = "${lib.substring 0 8 gitRev}";
12 13
13 src = ./.; 14 src = ./.;
14 15
+4 −1 flake.nix
@@ -12,7 +12,10 @@
12 forAllSystems = fn: nixpkgs.lib.genAttrs systems (system: fn nixpkgs.legacyPackages.${system}); 12 forAllSystems = fn: nixpkgs.lib.genAttrs systems (system: fn nixpkgs.legacyPackages.${system});
13 in { 13 in {
14 packages = forAllSystems (pkgs: rec { 14 packages = forAllSystems (pkgs: rec {
15 - default = pkgs.callPackage ./default.nix {}; 15 + default = pkgs.callPackage ./default.nix {
16 + # use git rev for non tagged releases
17 + gitRev = self.rev or self.dirtyRev or null;
18 + };
16 oxwm = default; 19 oxwm = default;
17 }); 20 });
18 21