diff options
Diffstat (limited to '')
-rw-r--r-- | flake.nix | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/flake.nix b/flake.nix index 36b212c..bb1802d 100644 --- a/flake.nix +++ b/flake.nix @@ -30,10 +30,10 @@ }: (flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages."${system}"; - python = pkgs.python3.withPackages (ps: - with ps; [ - yt-dlp - ]); + python = pkgs.python3.withPackages (ps: [ + ps.yt-dlp + blake3 + ]); buildInputs = with pkgs; [ mpv-unwrapped.dev @@ -43,12 +43,13 @@ llvmPackages_latest.clang-unwrapped.lib ]; - yt = pkgs.callPackage ./package.nix {}; + yt = pkgs.callPackage ./package/package.nix {inherit blake3;}; + blake3 = pkgs.callPackage ./package/blake3/blake3.nix {}; treefmtEval = import ./treefmt.nix {inherit treefmt-nix pkgs;}; in { packages = { - inherit yt; + inherit yt blake3; default = self.packages.${system}.yt; }; @@ -73,26 +74,28 @@ inherit buildInputs nativeBuildInputs; - packages = with pkgs; [ + packages = [ # rust stuff - cargo - clippy - rustc - rustfmt - mold-wrapped + pkgs.cargo + pkgs.clippy + pkgs.rustc + pkgs.rustfmt + pkgs.mold-wrapped + + pkgs.reuse + pkgs.cocogitto - reuse - cocogitto + pkgs.hyperfine - sqlx-cli - sqlite-interactive + pkgs.sqlx-cli + pkgs.sqlite-interactive python - jq + pkgs.jq - cargo-edit - cargo-expand - cargo-flamegraph + pkgs.cargo-edit + pkgs.cargo-expand + pkgs.cargo-flamegraph ]; }; })); |