Specify FieldPOC version once in flake.nix

This commit is contained in:
clerie 2023-10-14 21:26:27 +02:00
parent a35780e489
commit d23c1fbedb

View File

@ -6,7 +6,9 @@
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, mitel-ommclient2, ... }: {
outputs = { self, nixpkgs, mitel-ommclient2, ... }: let
fieldpoc_version = "0.11.0";
in {
packages.x86_64-linux = let
pkgs = import nixpkgs {
system = "x86_64-linux";
@ -14,7 +16,7 @@
in {
fieldpoc = pkgs.python3Packages.buildPythonPackage {
pname = "fieldpoc";
version = "0.11.0";
version = fieldpoc_version;
src = ./.;
@ -106,7 +108,7 @@
docs = pkgs.stdenv.mkDerivation {
pname = "fieldpoc-docs";
version = "0.0.1";
version = fieldpoc_version;
src = ./.;