-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
40 lines (35 loc) · 1.1 KB
/
Copy pathflake.nix
File metadata and controls
40 lines (35 loc) · 1.1 KB
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
31
32
33
34
35
36
37
38
39
40
{
description = "Minimalist system info tool in Python - pyfetch";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
python = pkgs.python3;
pyfetch = python.pkgs.buildPythonPackage {
pname = "pyfetch";
version = "1.2.0";
src = ./.;
nativeBuildInputs = with python.pkgs; [ setuptools ];
propagatedBuildInputs = with python.pkgs; [
psutil
colorama
];
doCheck = false; # Set to true if you want to run tests
pythonImportsCheck = [ "pyfetch" ];
};
in {
packages.default = pyfetch;
apps.default = {
type = "app";
program = "${pyfetch}/bin/pyfetch";
};
devShells.default = pkgs.mkShell {
buildInputs = [ python pkgs.python3Packages.psutil pkgs.python3Packages.colorama ];
};
}
);
}