diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-22 13:58:47 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-22 13:59:09 +0200 |
commit | 812dde842c25183a482a98e02eeca724a5d24320 (patch) | |
tree | b97831f368f48e9a05434e34b868ae209c71a6d8 /flake.nix | |
parent | chore(version): v0.1.3 (diff) | |
download | yt-812dde842c25183a482a98e02eeca724a5d24320.tar.gz yt-812dde842c25183a482a98e02eeca724a5d24320.zip |
build(package): Include python `blake3` dependency
Diffstat (limited to 'flake.nix')
-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 ]; }; })); |