-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
30 lines (30 loc) · 1 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.python-setuptools-generate.url = "github:Freed-Wu/setuptools-generate";
outputs = { self, nixpkgs, flake-utils, python-setuptools-generate }:
flake-utils.lib.eachDefaultSystem
(system:
let setuptools-generate = python-setuptools-generate.packages.${system}.default; in
with nixpkgs.legacyPackages.${system};
with python3.pkgs;
{
formatter = nixpkgs-fmt;
packages.default = buildPythonApplication rec {
pname = "bitbake-language-server";
version = "";
src = self;
format = "pyproject";
disabled = pythonOlder "3.6";
propagatedBuildInputs = [
];
nativeCheckInputs = [
setuptools-generate
];
pythonImportsCheck = [
"bitbake_language_server"
];
};
}
);
}