apio: migrate to by-name

apio: refactor package definitions

+25 -30
+25 -28
pkgs/development/embedded/fpga/apio/default.nix pkgs/by-name/ap/apio/package.nix
··· 1 { 2 lib, 3 - buildPythonApplication, 4 fetchFromGitHub, 5 - click, 6 - semantic-version, 7 - requests, 8 - colorama, 9 - pyserial, 10 - wheel, 11 - scons, 12 - setuptools, 13 tinyprog, 14 - flit-core, 15 - pytestCheckHook, 16 }: 17 18 - buildPythonApplication rec { 19 pname = "apio"; 20 version = "0.9.5"; 21 ··· 24 src = fetchFromGitHub { 25 owner = "FPGAwars"; 26 repo = "apio"; 27 - rev = "v${version}"; 28 hash = "sha256-VU4tOszGkw20DWW2SerFsnjFiSkrSwqBcwosGnHJfU8="; 29 }; 30 ··· 50 'version = semantic_version.Version(pkg_version.replace(".dev", "-dev"))' 51 ''; 52 53 - nativeBuildInputs = [ 54 flit-core 55 ]; 56 57 - propagatedBuildInputs = [ 58 - click 59 - semantic-version 60 - requests 61 - colorama 62 - pyserial 63 - wheel 64 - scons 65 - setuptools # needs pkg_resources at runtime (technically not needed when tinyprog is also in this list because of the propagatedBuildInputs of tinyprog) 66 67 - tinyprog # needed for upload to TinyFPGA 68 ]; 69 70 - nativeCheckInputs = [ 71 pytestCheckHook 72 ]; 73 ··· 80 81 strictDeps = true; 82 83 - meta = with lib; { 84 description = "Open source ecosystem for open FPGA boards"; 85 mainProgram = "apio"; 86 homepage = "https://github.com/FPGAwars/apio"; 87 - license = licenses.gpl2Only; 88 - maintainers = with maintainers; [ Luflosi ]; 89 }; 90 }
··· 1 { 2 lib, 3 + python3Packages, 4 fetchFromGitHub, 5 tinyprog, 6 + scons, 7 }: 8 9 + python3Packages.buildPythonApplication rec { 10 pname = "apio"; 11 version = "0.9.5"; 12 ··· 15 src = fetchFromGitHub { 16 owner = "FPGAwars"; 17 repo = "apio"; 18 + tag = "v${version}"; 19 hash = "sha256-VU4tOszGkw20DWW2SerFsnjFiSkrSwqBcwosGnHJfU8="; 20 }; 21 ··· 41 'version = semantic_version.Version(pkg_version.replace(".dev", "-dev"))' 42 ''; 43 44 + nativeBuildInputs = with python3Packages; [ 45 flit-core 46 ]; 47 48 + dependencies = 49 + with python3Packages; 50 + [ 51 + click 52 + semantic-version 53 + requests 54 + colorama 55 + pyserial 56 + wheel 57 + ] 58 + ++ [ 59 + scons 60 + tinyprog # needed for upload to TinyFPGA 61 + ]; 62 63 + build-system = with python3Packages; [ 64 + setuptools # needs pkg_resources at runtime (technically not needed when tinyprog is also in this list because of the propagatedBuildInputs of tinyprog) 65 ]; 66 67 + nativeCheckInputs = with python3Packages; [ 68 pytestCheckHook 69 ]; 70 ··· 77 78 strictDeps = true; 79 80 + meta = { 81 description = "Open source ecosystem for open FPGA boards"; 82 mainProgram = "apio"; 83 homepage = "https://github.com/FPGAwars/apio"; 84 + license = lib.licenses.gpl2Only; 85 + maintainers = with lib.maintainers; [ Luflosi ]; 86 }; 87 }
-2
pkgs/top-level/all-packages.nix
··· 1597 arduino-core = callPackage ../development/embedded/arduino/arduino-core/chrootenv.nix { }; 1598 arduino-core-unwrapped = callPackage ../development/embedded/arduino/arduino-core { }; 1599 1600 - apio = python3Packages.callPackage ../development/embedded/fpga/apio { }; 1601 - 1602 apitrace = libsForQt5.callPackage ../applications/graphics/apitrace { }; 1603 1604 arpack-mpi = arpack.override { useMpi = true; };
··· 1597 arduino-core = callPackage ../development/embedded/arduino/arduino-core/chrootenv.nix { }; 1598 arduino-core-unwrapped = callPackage ../development/embedded/arduino/arduino-core { }; 1599 1600 apitrace = libsForQt5.callPackage ../applications/graphics/apitrace { }; 1601 1602 arpack-mpi = arpack.override { useMpi = true; };