about summary refs log tree commit diff
path: root/pkgs/applications/audio/muso
diff options
context:
space:
mode:
authorbloomvdomino <0x@ytex.de>2021-02-16 10:47:22 +0100
committerbloomvdomino <0x@ytex.de>2021-02-17 01:09:42 +0100
commit3d4bc22ea5055c4b9217b1bd4853ac935171d726 (patch)
treeb7017cb03ac3fa34cc51f8f3f241f8a05cc22e9a /pkgs/applications/audio/muso
parentecc19c0b99d7cdace6f333a3745a533e61fc4935 (diff)
downloadnixlib-3d4bc22ea5055c4b9217b1bd4853ac935171d726.tar
nixlib-3d4bc22ea5055c4b9217b1bd4853ac935171d726.tar.gz
nixlib-3d4bc22ea5055c4b9217b1bd4853ac935171d726.tar.bz2
nixlib-3d4bc22ea5055c4b9217b1bd4853ac935171d726.tar.lz
nixlib-3d4bc22ea5055c4b9217b1bd4853ac935171d726.tar.xz
nixlib-3d4bc22ea5055c4b9217b1bd4853ac935171d726.tar.zst
nixlib-3d4bc22ea5055c4b9217b1bd4853ac935171d726.zip
muso: init at 2.0.0
Diffstat (limited to 'pkgs/applications/audio/muso')
-rw-r--r--pkgs/applications/audio/muso/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/applications/audio/muso/default.nix b/pkgs/applications/audio/muso/default.nix
new file mode 100644
index 000000000000..436afac7df29
--- /dev/null
+++ b/pkgs/applications/audio/muso/default.nix
@@ -0,0 +1,36 @@
+{ lib, fetchFromGitHub, rustPlatform
+, pkg-config, wrapGAppsHook
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "muso";
+  version = "2.0.0";
+
+  src = fetchFromGitHub {
+    owner = "quebin31";
+    repo = pname;
+    rev = "68cc90869bcc0f202830a318fbfd6bb9bdb75a39";
+    sha256 = "1dnfslliss173igympl7h1zc0qz0g10kf96dwrcj6aglmvvw426p";
+  };
+
+  nativeBuildInputs = [ pkg-config wrapGAppsHook ];
+
+  preConfigure = ''
+    substituteInPlace lib/utils.rs \
+      --replace "/usr/share/muso" "$out/share/muso"
+  '';
+
+  postInstall = ''
+    mkdir -p $out/share/muso
+    cp share/* $out/share/muso/
+  '';
+
+  cargoSha256 = "06jgk54r3f8gq6iylv5rgsawss3hc5kmvk02y4gl8iwfnw4xrvmg";
+
+  meta = with lib; {
+    description = "An automatic music sorter (based on ID3 tags)";
+    homepage = "https://github.com/quebin31/muso";
+    license = with licenses; [ gpl3Plus ];
+    maintainers = with maintainers; [ bloomvdomino ];
+  };
+}