minor improvements
* added ability to override source * use inherit (I heard that this improves performance)
This commit is contained in:
@ -2,13 +2,16 @@
|
|||||||
fetchgit,
|
fetchgit,
|
||||||
python3Packages,
|
python3Packages,
|
||||||
jre,
|
jre,
|
||||||
...
|
balatromobileSrc ?
|
||||||
|
fetchgit {
|
||||||
|
url = "https://github.com/antipatico/balatromobile";
|
||||||
|
hash = "sha256-P6MVmDiI6NLHqBYdkbtqExHKjkjLeD5bE/kTEyPxVTw=";
|
||||||
|
fetchLFS = true;
|
||||||
|
},
|
||||||
}: let
|
}: let
|
||||||
src = fetchgit {
|
inherit (python3Packages) flit tabulate;
|
||||||
url = "https://github.com/antipatico/balatromobile";
|
|
||||||
sha256 = "P6MVmDiI6NLHqBYdkbtqExHKjkjLeD5bE/kTEyPxVTw=";
|
src = balatromobileSrc;
|
||||||
fetchLFS = true;
|
|
||||||
};
|
|
||||||
pname = (builtins.fromTOML (builtins.readFile "${src}/pyproject.toml")).project.name;
|
pname = (builtins.fromTOML (builtins.readFile "${src}/pyproject.toml")).project.name;
|
||||||
version = builtins.elemAt (builtins.match ".*([0-9]+\.[0-9]+\.[0-9]+).*" (builtins.readFile "${src}/balatromobile/__version__.py")) 0;
|
version = builtins.elemAt (builtins.match ".*([0-9]+\.[0-9]+\.[0-9]+).*" (builtins.readFile "${src}/balatromobile/__version__.py")) 0;
|
||||||
in
|
in
|
||||||
@ -16,6 +19,6 @@ in
|
|||||||
inherit pname version src;
|
inherit pname version src;
|
||||||
|
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
build-system = [python3Packages.flit];
|
build-system = [flit];
|
||||||
dependencies = [python3Packages.tabulate jre];
|
dependencies = [tabulate jre];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user