From d9d2504f0e65d0450509404c61343d6df66f8069 Mon Sep 17 00:00:00 2001 From: ChaotiCryptidz Date: Mon, 7 Feb 2022 11:14:09 +0000 Subject: [PATCH] add musicutil --- home/apps/musicutil.nix | 1 + hosts/lappy/lappy.nix | 1 + overlay/default.nix | 3 +++ overlay/fold-to-ascii/default.nix | 12 ++++++++++++ overlay/musicutil/default.nix | 18 ++++++++++++++++++ 5 files changed, 35 insertions(+) create mode 100644 home/apps/musicutil.nix create mode 100644 overlay/fold-to-ascii/default.nix create mode 100644 overlay/musicutil/default.nix diff --git a/home/apps/musicutil.nix b/home/apps/musicutil.nix new file mode 100644 index 0000000..88226a7 --- /dev/null +++ b/home/apps/musicutil.nix @@ -0,0 +1 @@ +{ config, pkgs, ... }: { home.packages = with pkgs; [ musicutil ]; } diff --git a/hosts/lappy/lappy.nix b/hosts/lappy/lappy.nix index 7f2bf06..2544394 100644 --- a/hosts/lappy/lappy.nix +++ b/hosts/lappy/lappy.nix @@ -63,6 +63,7 @@ home.apps.file-roller home.apps.nautilus home.apps.nicotine-plus + home.apps.musicutil home.programming home.programming.languages.go diff --git a/overlay/default.nix b/overlay/default.nix index e7f91f9..23b2ab8 100644 --- a/overlay/default.nix +++ b/overlay/default.nix @@ -12,4 +12,7 @@ final: prev: { }; roc-toolkit-patched = final.callPackage ./roc-toolkit-patched { }; roc-send-pcm = final.callPackage ./roc-send-pcm { }; + musicutil = final.python3Packages.callPackage ./musicutil { + fold-to-ascii = final.python3Packages.callPackage ./fold-to-ascii {}; + }; } diff --git a/overlay/fold-to-ascii/default.nix b/overlay/fold-to-ascii/default.nix new file mode 100644 index 0000000..4e9bd08 --- /dev/null +++ b/overlay/fold-to-ascii/default.nix @@ -0,0 +1,12 @@ +{ lib, buildPythonPackage, fetchPypi }: + +buildPythonPackage rec { + pname = "fold-to-ascii"; + version = "1.0.2.post1"; + + src = fetchPypi { + pname = "fold_to_ascii"; + inherit version; + sha256 = "sha256-cWegf9wjC9XfU4HpIh/iRtDv86hutn45NfkfWuyjUzo="; + }; +} diff --git a/overlay/musicutil/default.nix b/overlay/musicutil/default.nix new file mode 100644 index 0000000..96355ea --- /dev/null +++ b/overlay/musicutil/default.nix @@ -0,0 +1,18 @@ +{ stdenv, fetchFromGitLab, lib, python3Packages, mutagen, fold-to-ascii, pyyaml }: +python3Packages.buildPythonApplication rec { + pname = "musicutil"; + version = "latest"; + rev = "9880c175a679bf4450745dc91fb18fb88e0a4fd6"; + + src = fetchFromGitLab { + owner = "ChaotiCryptidz"; + repo = "musicutil"; + inherit rev; + sha256 = "sha256-pvDxVeCNZy3TKfbFds4QSQPR2lYZR+RZrwBHI+Pfj+w="; + #sha256 = lib.fakeSha256; + }; + + doCheck = false; + + propagatedBuildInputs = [ mutagen fold-to-ascii pyyaml ]; +}