best practices: use builtins.path for local source
This commit is contained in:
parent
120d485f28
commit
a9ef403cea
@ -4,10 +4,16 @@
|
|||||||
ffmpeg,
|
ffmpeg,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
python3Packages.buildPythonApplication {
|
let
|
||||||
pname = "download";
|
pname = "download";
|
||||||
version = "2.5";
|
version = "2.5";
|
||||||
src = ../../scripts/download/.;
|
in
|
||||||
|
python3Packages.buildPythonApplication {
|
||||||
|
inherit pname version;
|
||||||
|
src = {
|
||||||
|
path = ../../scripts/download/.;
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
};
|
||||||
build-system = [ python3Packages.setuptools ];
|
build-system = [ python3Packages.setuptools ];
|
||||||
dependencies = builtins.attrValues {
|
dependencies = builtins.attrValues {
|
||||||
inherit (python3Packages)
|
inherit (python3Packages)
|
||||||
|
|||||||
@ -41,7 +41,10 @@ buildNpmPackage (
|
|||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
(substituteAll {
|
(substituteAll {
|
||||||
src = ./code.patch;
|
src = builtins.path {
|
||||||
|
path = ./code.patch;
|
||||||
|
name = "${src.name}-patch";
|
||||||
|
};
|
||||||
inherit ffmpeg;
|
inherit ffmpeg;
|
||||||
filepicker = lib.getExe filepicker;
|
filepicker = lib.getExe filepicker;
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user