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
|
||||
|
||||
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
|
||||
mv "$file" "$(printf '%03d_%s' $((10#${file%%_*} + 4)) "${file#*_}")"
|
||||
mv "$file" "$(printf '%03d_%s' $((10#${file%%_*} + 1)) "${file#*_}")"
|
||||
done
|
||||
|
||||
@ -2,18 +2,18 @@
|
||||
pkgs ? import <nixpkgs> { },
|
||||
}:
|
||||
|
||||
let
|
||||
pythonPackages = builtins.attrValues {
|
||||
inherit (pkgs.python3Packages) setuptools pyyaml types-pyyaml;
|
||||
};
|
||||
otherPackages = builtins.attrValues {
|
||||
inherit (pkgs) yt-dlp gallery-dl ffmpeg;
|
||||
};
|
||||
in
|
||||
|
||||
pkgs.mkShell {
|
||||
packages = [
|
||||
(pkgs.python3.withPackages (_ps: pythonPackages))
|
||||
] ++ otherPackages;
|
||||
packages =
|
||||
[
|
||||
(pkgs.python3.withPackages (
|
||||
ps:
|
||||
builtins.attrValues {
|
||||
inherit (ps) setuptools pyyaml types-pyyaml;
|
||||
}
|
||||
))
|
||||
]
|
||||
++ builtins.attrValues {
|
||||
inherit (pkgs) yt-dlp gallery-dl ffmpeg;
|
||||
};
|
||||
buildInputs = [ ];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user