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