mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
65 lines
1.3 KiB
Nix
65 lines
1.3 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, meerk40t-camera
|
|
, python3
|
|
, gtk3
|
|
, wrapGAppsHook
|
|
}:
|
|
|
|
let
|
|
inherit (python3.pkgs) buildPythonApplication buildPythonPackage fetchPypi;
|
|
in
|
|
buildPythonApplication rec {
|
|
pname = "MeerK40t";
|
|
version = "0.8.1000";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "meerk40t";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-YCcnqaH4Npmct5IBHsnufswRz8bS7mUb1YFwTta/Dxc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
wrapGAppsHook
|
|
];
|
|
|
|
# prevent double wrapping
|
|
dontWrapGApps = true;
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
ezdxf
|
|
meerk40t-camera
|
|
opencv4
|
|
pillow
|
|
pyserial
|
|
pyusb
|
|
setuptools
|
|
wxPython_4_2
|
|
];
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(
|
|
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}"
|
|
)
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
'';
|
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
|
unittestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$TMPDIR
|
|
'';
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/meerk40t/meerk40t/releases/tag/${version}";
|
|
description = "MeerK40t LaserCutter Software";
|
|
homepage = "https://github.com/meerk40t/meerk40t";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|