diff options
author | Matthias Beyer <matthias.beyer@ifm.com> | 2022-02-02 09:58:30 +0100 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@ifm.com> | 2022-02-14 16:04:54 +0100 |
commit | 285d7781d882ee7f9094691685ea098032349c7c (patch) | |
tree | 7e65fc2891309f93bfae2da22b95fd9b4db07cab | |
parent | feb123d31e3907c5f372743b6c1abeae107fab71 (diff) |
packages: Only set version variable once
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rw-r--r-- | examples/packages.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/packages.nix b/examples/packages.nix index 88cb406c..4e2b205a 100644 --- a/examples/packages.nix +++ b/examples/packages.nix @@ -5,9 +5,12 @@ let rust = (pkgs.rustChannelOf { channel = "stable"; }).rust; + + version = "HEAD"; + tedge = pkgs.rustPlatform.buildRustPackage rec { pname = "tedge"; - version = "master"; + inherit version; src = pkgs.nix-gitignore.gitignoreSourcePure "target\n" ./..; @@ -35,7 +38,7 @@ let in rec { - version = "master"; + inherit version; tedge = mkTedgePkg { inherit version; |