Hey there!
I am trying to package my first application for nixpkgs right now, but for some reason there is an error that appears. Unfortunately it is quite cryptic, so I could not figure out how I would go about fixing. I already tried a few different things, but none of them helped.
When running the command nix-build -A xenon
, I get the following error:
error:
… while calling the 'abort' builtin
at /home/thiloho/dev/nixpkgs/lib/customisation.nix:173:65:
172|
173| in if missingArgs == [] then makeOverridable f allArgs else abort error;
| ^
174|
error: evaluation aborted with the following error message: 'Function called without required argument "buildPythonPackage" at /home/thiloho/dev/nixpkgs/pkgs/by-name/xe/xenon/package.nix:2'
And this is my code for pkgs/by-name/xe/xenon/package.nix
:
{ lib
, buildPythonPackage
, fetchFromGitHub
}:
buildPythonPackage {
pname = "xenon";
version = "0.9.1";
src = fetchFromGitHub {
owner = "rubik";
repo = "xenon";
rev = "9d06d21515d9956d4c270aa04b05d4f1751f9516";
hash = "sha256-ui6dCjn4Xt+QqPoQoe/2OwfR+1DDW3dziLjSPsimQUs=";
};
meta = with lib; {
homepage = "https://xenon.readthedocs.io";
description = "Code complexity monitoring tool based on radon";
license = licenses.mit;
maintainers = with maintainers; [ thiloho ];
};
}
I would very much appreciate your help! Thank you in advance!