Refactor Nix package definitions for improved clarity and consistency, including updates to overlays, dependencies, and build inputs across multiple packages.

This commit is contained in:
2025-10-02 14:45:13 -06:00
parent 38959dc37b
commit e9fc085de1
14 changed files with 188 additions and 198 deletions

View File

@@ -3,17 +3,16 @@
}:
pkgs.mkShell {
packages =
[
(pkgs.python3.withPackages (
ps:
builtins.attrValues {
inherit (ps) setuptools pyyaml types-pyyaml;
}
))
]
++ builtins.attrValues {
inherit (pkgs) yt-dlp gallery-dl ffmpeg;
};
packages = [
(pkgs.python3.withPackages (
ps:
builtins.attrValues {
inherit (ps) setuptools pyyaml types-pyyaml;
}
))
]
++ builtins.attrValues {
inherit (pkgs) yt-dlp gallery-dl ffmpeg;
};
buildInputs = [ ];
}

View File

@@ -1,12 +1,18 @@
let pkgs = import <nixpkgs> { };
in pkgs.haskellPackages.developPackage {
let
pkgs = import <nixpkgs> { };
in
pkgs.haskellPackages.developPackage {
root = ./.;
modifier = drv:
pkgs.haskell.lib.addBuildTools drv (with pkgs.haskellPackages; [
cabal-install
ghcid
haskell-language-server
fourmolu
regex
]);
modifier =
drv:
pkgs.haskell.lib.addBuildTools drv (
with pkgs.haskellPackages;
[
cabal-install
ghcid
haskell-language-server
fourmolu
regex
]
);
}

View File

@@ -1,18 +1,21 @@
{ pkgs ? import <nixpkgs> { } }:
{
pkgs ? import <nixpkgs> { },
}:
with pkgs;
mkShell {
packages = [
geckodriver
(python3.withPackages (ps:
with ps; [
(python3.withPackages (
ps: with ps; [
tweepy
requests
beautifulsoup4
selenium
webdriver-manager
]))
]
))
];
buildInputs = [ ];
}