summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/be
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/be')
-rw-r--r--pkgs/by-name/be/beetsExtraPlugins/package.nix3
-rw-r--r--pkgs/by-name/be/beetsExtraPlugins/package.unstable.nix12
-rw-r--r--pkgs/by-name/be/beetsExtraPlugins/xtractor.nix109
3 files changed, 73 insertions, 51 deletions
diff --git a/pkgs/by-name/be/beetsExtraPlugins/package.nix b/pkgs/by-name/be/beetsExtraPlugins/package.nix
deleted file mode 100644
index 0da472fa..00000000
--- a/pkgs/by-name/be/beetsExtraPlugins/package.nix
+++ /dev/null
@@ -1,3 +0,0 @@
-{pkgs, ...}: {
- xtractor = pkgs.callPackage ./xtractor.nix {beets = pkgs.beetsPackages.beets-minimal;};
-}
diff --git a/pkgs/by-name/be/beetsExtraPlugins/package.unstable.nix b/pkgs/by-name/be/beetsExtraPlugins/package.unstable.nix
new file mode 100644
index 00000000..b310715b
--- /dev/null
+++ b/pkgs/by-name/be/beetsExtraPlugins/package.unstable.nix
@@ -0,0 +1,12 @@
+# nixos-config - My current NixOS configuration
+#
+# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+# This file is part of my nixos-config.
+#
+# 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>.
+{...}: {
+ # xtractor = pkgs.callPackage ./xtractor.nix {beets = pkgs.beetsPackages.beets-minimal;};
+}
diff --git a/pkgs/by-name/be/beetsExtraPlugins/xtractor.nix b/pkgs/by-name/be/beetsExtraPlugins/xtractor.nix
index 01c6207a..c6b942fd 100644
--- a/pkgs/by-name/be/beetsExtraPlugins/xtractor.nix
+++ b/pkgs/by-name/be/beetsExtraPlugins/xtractor.nix
@@ -1,54 +1,67 @@
+# nixos-config - My current NixOS configuration
+#
+# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+# This file is part of my nixos-config.
+#
+# 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>.
{
lib,
fetchFromGitHub,
python3Packages,
beets,
-}:
-# FIXME: Find a way to update this derivation <2024-08-11>
-let
- version = "0.4.2";
- models = builtins.fetchTarball {
- url = "https://essentia.upf.edu/svm_models/essentia-extractor-svm_models-v2.1_beta5.tar.gz";
- sha256 = "11ps1l4h8bl4l9rlvkhjs61908l18dh7mpq65brm8ki99hnp9g64";
- };
-in
- python3Packages.buildPythonApplication {
- inherit version;
- pname = "beets-xtractor";
- pyproject = true;
+}: {}
+# # NOTE: This fails to build now. It didn't work anyways. See
+# https://git.sr.ht/~johnhamelink/nix/tree/master/item/home/hosts/sun/beets/beets-plugin-xtractor.nix
+# for a possibly working version. <2025-03-29>
+# # FIXME: Find a way to update this derivation <2024-08-11>
+# let
+# version = "0.4.2";
+# models = builtins.fetchTarball {
+# url = "https://essentia.upf.edu/svm_models/essentia-extractor-svm_models-v2.1_beta5.tar.gz";
+# sha256 = "11ps1l4h8bl4l9rlvkhjs61908l18dh7mpq65brm8ki99hnp9g64";
+# };
+# in
+# python3Packages.buildPythonApplication {
+# inherit version;
+# pname = "beets-xtractor";
+# pyproject = true;
+#
+# src = fetchFromGitHub {
+# repo = "BeetsPluginXtractor";
+# owner = "adamjakab";
+# rev = "v${version}";
+# hash = "sha256-it4qQ2OS4qBEaGLJK8FVGpjlvg0MQICazV7TAM8lH9s=";
+# };
+#
+# nativeBuildInputs = [
+# beets
+# python3Packages.setuptools
+# ];
+#
+# passthru = {inherit models;};
+#
+# nativeCheckInputs = with python3Packages; [
+# pytestCheckHook
+# pytest-cov
+# mock
+# typeguard
+# ];
+#
+# preCheck = ''
+# export HOME="$(mktemp -d)"
+# '';
+# postInstall = ''
+# mkdir --parents $out/models
+# cp ${models}/* $out/models
+# '';
+#
+# meta = {
+# description = "Obtain low and high level musical information from your song";
+# homepage = "https://github.com/adamjakab/BeetsPluginXtractor/releasesfhhhhh";
+# license = lib.licenses.mit;
+# };
+# }
- src = fetchFromGitHub {
- repo = "BeetsPluginXtractor";
- owner = "adamjakab";
- rev = "v${version}";
- hash = "sha256-it4qQ2OS4qBEaGLJK8FVGpjlvg0MQICazV7TAM8lH9s=";
- };
-
- nativeBuildInputs = [
- beets
- python3Packages.setuptools
- ];
-
- passthru = {inherit models;};
-
- nativeCheckInputs = with python3Packages; [
- pytestCheckHook
- pytest-cov
- mock
- typeguard
- ];
-
- preCheck = ''
- export HOME="$(mktemp -d)"
- '';
- postInstall = ''
- mkdir --parents $out/models
- cp ${models}/* $out/models
- '';
-
- meta = {
- description = "Obtain low and high level musical information from your song";
- homepage = "https://github.com/adamjakab/BeetsPluginXtractor/releasesfhhhhh";
- license = lib.licenses.mit;
- };
- }