about summary refs log tree commit diff
path: root/pkgs/applications/audio
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-06-05 17:03:36 +0200
committerGitHub <noreply@github.com>2021-06-05 17:03:36 +0200
commit63ab3672b74e1326b043827da5788804734d9ee6 (patch)
treeaa06ecfea79eabcdad9b1aad1883f340b714359d /pkgs/applications/audio
parent360ba1738f2846648dd0d73bcb34bb1b75555d64 (diff)
parent059950a2d49cb7089c6a9a1155973323afe35bf6 (diff)
Merge pull request #125243 from tcbravo/songrec
songrec: init at 0.1.8
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r--pkgs/applications/audio/songrec/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/applications/audio/songrec/default.nix b/pkgs/applications/audio/songrec/default.nix
new file mode 100644
index 0000000000000..81bd3c67d7ddf
--- /dev/null
+++ b/pkgs/applications/audio/songrec/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, rustPlatform
+, fetchFromGitHub
+, gtk3
+, openssl
+, alsaLib
+, pkg-config
+, ffmpeg
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "songrec";
+  version = "0.1.8";
+
+  src = fetchFromGitHub {
+    owner = "marin-m";
+    repo = pname;
+    rev = version;
+    sha256 = "sha256-6siGLegNgvLdP7engwpKmhzWYqBXcMsfaXhJJ1tIqJg=";
+  };
+
+  cargoSha256 = "sha256-H4qJYcFjip71EVTGw50goj0HjKN9fmjQZqQDhaSKlaQ=";
+
+  nativeBuildInputs = [ pkg-config ];
+
+  buildInputs = [ alsaLib gtk3 openssl ffmpeg ];
+
+  meta = with lib; {
+    description = "An open-source Shazam client for Linux, written in Rust";
+    homepage = "https://github.com/marin-m/SongRec";
+    license = licenses.gpl3Only;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ tcbravo ];
+  };
+}