lol

platformio-core: move src & version to main expression

+11 -13
+10 -2
pkgs/development/embedded/platformio/core.nix
··· 3 3 , fetchPypi 4 4 , git 5 5 , spdx-license-list-data 6 - , version, src 7 6 }: 8 7 9 8 with python3.pkgs; buildPythonApplication rec { 10 9 pname = "platformio"; 11 - inherit version src; 10 + 11 + version = "6.1.6"; 12 + 13 + # pypi tarballs don't contain tests - https://github.com/platformio/platformio-core/issues/1964 14 + src = fetchFromGitHub { 15 + owner = "platformio"; 16 + repo = "platformio-core"; 17 + rev = "v${version}"; 18 + sha256 = "sha256-BEeMfdmAWqFbQUu8YKKrookQVgmhfZBqXnzeb2gfhms="; 19 + }; 12 20 13 21 outputs = [ "out" "udev" ]; 14 22
+1 -11
pkgs/development/embedded/platformio/default.nix
··· 3 3 let 4 4 callPackage = newScope self; 5 5 6 - version = "6.1.6"; 7 - 8 - # pypi tarballs don't contain tests - https://github.com/platformio/platformio-core/issues/1964 9 - src = fetchFromGitHub { 10 - owner = "platformio"; 11 - repo = "platformio-core"; 12 - rev = "v${version}"; 13 - sha256 = "sha256-BEeMfdmAWqFbQUu8YKKrookQVgmhfZBqXnzeb2gfhms="; 14 - }; 15 - 16 6 self = { 17 - platformio-core = python3Packages.callPackage ./core.nix { inherit version src; }; 7 + platformio-core = python3Packages.callPackage ./core.nix { }; 18 8 19 9 platformio-chrootenv = callPackage ./chrootenv.nix { }; 20 10 };