generated from UniDash-Linux/pkg-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.nix
executable file
·52 lines (52 loc) · 1.63 KB
/
package.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
lib,
python3Packages,
fetchFromGitHub,
fetchPypi,
}:
############
# Packages #
#########################################################################
let
comment = "Python3 Hello World";
pname = "pip-hello-world";
version = "0.1";
in python3Packages.buildPythonApplication rec {
## ----------------------------------------------------------------- ##
inherit pname version;
format = "pyproject"; # for not setup.py
dontUseCmakeConfigure = true; # for not setup.py
doCheck = false;
## ----------------------------------------------------------------- ##
src = fetchPypi {
inherit pname version;
hash = "sha256-framXG712U7EWdZAP5Xz7dzEGkomaF7aoF7kX6sq5GU=";
};
## ----------------------------------------------------------------- ##
# src = fetchFromGitHub {
# owner = "pedrocunial";
# repo = "pip-helloworld";
# rev = version; # 7385eb989647509325d4f8f60e839ee699f5802a
# sha256 = "";
# };
## ----------------------------------------------------------------- ##
# nativeBuildInputs = [
# ];
#
# buildInputs = [
# ];
## ----------------------------------------------------------------- ##
propagatedBuildInputs = with python3Packages; [
setuptools
];
## ----------------------------------------------------------------- ##
meta = with lib; {
description = comment;
homepage = "https://github.com/RevoluNix/pkg-python311Package.template/";
license = licenses.lgpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ pikatsuto ];
mainProgram = pname;
};
#######################################################################
}