platformio-core: move src & version to main expression
This commit is contained in:
parent
8d8dd6fdbf
commit
fcbc5d74e7
2 changed files with 11 additions and 13 deletions
|
@ -3,12 +3,20 @@
|
|||
, fetchPypi
|
||||
, git
|
||||
, spdx-license-list-data
|
||||
, version, src
|
||||
}:
|
||||
|
||||
with python3.pkgs; buildPythonApplication rec {
|
||||
pname = "platformio";
|
||||
inherit version src;
|
||||
|
||||
version = "6.1.6";
|
||||
|
||||
# pypi tarballs don't contain tests - https://github.com/platformio/platformio-core/issues/1964
|
||||
src = fetchFromGitHub {
|
||||
owner = "platformio";
|
||||
repo = "platformio-core";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-BEeMfdmAWqFbQUu8YKKrookQVgmhfZBqXnzeb2gfhms=";
|
||||
};
|
||||
|
||||
outputs = [ "out" "udev" ];
|
||||
|
||||
|
|
|
@ -3,18 +3,8 @@
|
|||
let
|
||||
callPackage = newScope self;
|
||||
|
||||
version = "6.1.6";
|
||||
|
||||
# pypi tarballs don't contain tests - https://github.com/platformio/platformio-core/issues/1964
|
||||
src = fetchFromGitHub {
|
||||
owner = "platformio";
|
||||
repo = "platformio-core";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-BEeMfdmAWqFbQUu8YKKrookQVgmhfZBqXnzeb2gfhms=";
|
||||
};
|
||||
|
||||
self = {
|
||||
platformio-core = python3Packages.callPackage ./core.nix { inherit version src; };
|
||||
platformio-core = python3Packages.callPackage ./core.nix { };
|
||||
|
||||
platformio-chrootenv = callPackage ./chrootenv.nix { };
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue