better way to declare python functions
This commit is contained in:
parent
8aa2d98cdc
commit
9a7b09c159
@ -1,7 +1,7 @@
|
|||||||
#!/etc/profiles/per-user/jawz/bin/bash
|
#!/etc/profiles/per-user/jawz/bin/bash
|
||||||
|
|
||||||
cd /home/jawz/Development/Websites/portfolio/content/ijwbs || exit
|
cd /home/jawz/Development/Websites/portfolio/content/friends || exit
|
||||||
|
|
||||||
for file in [0-9][0-9][0-9]_*; do
|
for file in [0-9][0-9][0-9]_*; do
|
||||||
mv "$file" "$(printf '%03d_%s' $((10#${file%%_*} + 4)) "${file#*_}")"
|
mv "$file" "$(printf '%03d_%s' $((10#${file%%_*} + 1)) "${file#*_}")"
|
||||||
done
|
done
|
||||||
|
|||||||
@ -2,18 +2,18 @@
|
|||||||
pkgs ? import <nixpkgs> { },
|
pkgs ? import <nixpkgs> { },
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
pkgs.mkShell {
|
||||||
pythonPackages = builtins.attrValues {
|
packages =
|
||||||
inherit (pkgs.python3Packages) setuptools pyyaml types-pyyaml;
|
[
|
||||||
};
|
(pkgs.python3.withPackages (
|
||||||
otherPackages = builtins.attrValues {
|
ps:
|
||||||
|
builtins.attrValues {
|
||||||
|
inherit (ps) setuptools pyyaml types-pyyaml;
|
||||||
|
}
|
||||||
|
))
|
||||||
|
]
|
||||||
|
++ builtins.attrValues {
|
||||||
inherit (pkgs) yt-dlp gallery-dl ffmpeg;
|
inherit (pkgs) yt-dlp gallery-dl ffmpeg;
|
||||||
};
|
};
|
||||||
in
|
|
||||||
|
|
||||||
pkgs.mkShell {
|
|
||||||
packages = [
|
|
||||||
(pkgs.python3.withPackages (_ps: pythonPackages))
|
|
||||||
] ++ otherPackages;
|
|
||||||
buildInputs = [ ];
|
buildInputs = [ ];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user