Skip to content

Commit f51e7e5

Browse files
committed
nix: Build with version number
Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 0e6af0c commit f51e7e5

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

flake.nix

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
build_version = "awawa";
6161

62-
mkBuild = packages: build:
62+
mkBuild = packages: build: version:
6363
pkgs.stdenv.mkDerivation {
6464
name = build;
6565

@@ -110,7 +110,7 @@
110110
ZEPHYR_SDK_INSTALL_DIR = "${zephyr-sdk}";
111111

112112
buildPhase = ''
113-
${packages.zmake}/bin/zmake -j8 build --static -t zephyr ${build}
113+
${packages.zmake}/bin/zmake -j8 build --static -t zephyr ${build} -v ${version}
114114
'';
115115

116116
installPhase = ''
@@ -124,10 +124,10 @@
124124
formatter = pkgs.alejandra;
125125

126126
packages.default = packages.lotus;
127-
packages.lotus = mkBuild packages "lotus";
128-
packages.azalea = mkBuild packages "azalea";
129-
packages.marigold = mkBuild packages "marigold";
130-
packages.lilac = mkBuild packages "lilac";
127+
packages.lotus = mkBuild packages "lotus" "0.0.0";
128+
packages.azalea = mkBuild packages "azalea" "0.0.0";
129+
packages.marigold = mkBuild packages "marigold" "0.0.0";
130+
packages.lilac = mkBuild packages "lilac" "0.0.1";
131131

132132
packages.zmake = pythonPkgs.buildPythonPackage {
133133
name = "zmake";

0 commit comments

Comments
 (0)