about summary refs log tree commit diff stats
path: root/package.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-22 13:58:47 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-22 13:59:09 +0200
commit812dde842c25183a482a98e02eeca724a5d24320 (patch)
treeb97831f368f48e9a05434e34b868ae209c71a6d8 /package.nix
parentchore(version): v0.1.3 (diff)
downloadyt-812dde842c25183a482a98e02eeca724a5d24320.tar.gz
yt-812dde842c25183a482a98e02eeca724a5d24320.zip
build(package): Include python `blake3` dependency
Diffstat (limited to 'package.nix')
-rw-r--r--package.nix72
1 files changed, 0 insertions, 72 deletions
diff --git a/package.nix b/package.nix
deleted file mode 100644
index 54ee6c1..0000000
--- a/package.nix
+++ /dev/null
@@ -1,72 +0,0 @@
-# yt - A fully featured command line YouTube client
-#
-# Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@b-peetz.de>
-# SPDX-License-Identifier: GPL-3.0-or-later
-#
-# This file is part of Yt.
-#
-# You should have received a copy of the License along with this program.
-# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
-{
-  rustPlatform,
-  python3,
-  makeWrapper,
-  sqlite,
-  lib,
-  ffmpeg,
-  llvmPackages_latest,
-  glibc,
-  mpv-unwrapped,
-}: let
-  version = "0.1.0";
-
-  src = ./.;
-
-  buildInputs = [
-    (python3.withPackages (ps: [ps.yt-dlp]))
-    mpv-unwrapped.dev
-    ffmpeg
-  ];
-in
-  rustPlatform.buildRustPackage {
-    inherit version src buildInputs;
-    pname = "yt";
-
-    nativeBuildInputs = [
-      makeWrapper
-      sqlite
-    ];
-
-    env = let
-      clang_version =
-        lib.versions.major
-        llvmPackages_latest.clang-unwrapped.version;
-    in {
-      FFMPEG_LOCATION = "${lib.getExe ffmpeg}";
-      PYO3_PYTHON = lib.getExe (python3.withPackages (ps: [ps.yt-dlp]));
-
-      C_INCLUDE_PATH = "${glibc.dev}/include";
-      DATABASE_URL = "sqlite://target/database.sqlite";
-      LIBCLANG_INCLUDE_PATH = "${llvmPackages_latest.clang-unwrapped.lib}/lib/clang/${clang_version}/include";
-      LIBCLANG_PATH = "${llvmPackages_latest.clang-unwrapped.lib}/lib/libclang.so";
-    };
-
-    prePatch = ''
-      echo "$PATH"
-      bash ./scripts/mkdb.sh
-    '';
-
-    cargoLock = {
-      lockFile = ./Cargo.lock;
-    };
-
-    postBuild = ''
-      install -m755 ./python_update/raw_update.py -D "$out/bin/raw_update.py"
-      patchShebangs "$out/bin/raw_update.py"
-    '';
-
-    postInstall = ''
-      wrapProgram $out/bin/yt \
-        --prefix PATH : ${lib.makeBinPath buildInputs}:$out/bin
-    '';
-  }