git.iko.soy/typeable/nixpkgs
on master help sign in
tree-from-tags: init at 1.1

tree-from-tags is a tool for organising tagged audio into a tree, commonly used with bongo, a buffer-oriented media player for emacs

commitcd032364b6598a175b80b1f5e26ec7f24b8f0141 authorLev Livnev <lev@liv.nev.org.uk> dateSun 24 Feb 2019, 18:08 (8 years ago) parent631b234
5 files changed+65
pkgs/applications/audio/tree-from-tags/Gemfile+3 pkgs/applications/audio/tree-from-tags/Gemfile.lock+13 pkgs/applications/audio/tree-from-tags/default.nix+37 pkgs/applications/audio/tree-from-tags/gemset.nix+10 pkgs/top-level/all-packages.nix+2
pkgs/applications/audio/tree-from-tags/Gemfilenew file+3
@@ -0,0 +1,3 @@
1+source "https://rubygems.org"
2+
3+gem "taglib-ruby"
pkgs/applications/audio/tree-from-tags/Gemfile.locknew file+13
@@ -0,0 +1,13 @@
1+GEM
2+ remote: https://rubygems.org/
3+ specs:
4+ taglib-ruby (0.7.1)
5+
6+PLATFORMS
7+ ruby
8+
9+DEPENDENCIES
10+ taglib-ruby
11+
12+BUNDLED WITH
13+ 1.16.3
pkgs/applications/audio/tree-from-tags/default.nixnew file+37
@@ -0,0 +1,37 @@
1+{ stdenv, bundlerEnv, ruby, fetchFromGitHub }:
2+let
3+ version = "1.1";
4+ gems = bundlerEnv {
5+ name = "tree-from-tags-${version}-gems";
6+ inherit ruby;
7+ gemdir = ./.;
8+ };
9+in stdenv.mkDerivation {
10+ name = "tree-from-tags-${version}";
11+ src = fetchFromGitHub {
12+ owner = "dbrock";
13+ repo = "bongo";
14+ rev = version;
15+ sha256 = "1nszph9mn98flyhn1jq3y6mdh6jymjkvj5ng36ql016dj92apvhv";
16+ };
17+ buildInputs = [ gems ruby ];
18+ installPhase = ''
19+ mkdir -p $out/{bin,share}
20+ cp tree-from-tags.rb $out/share/
21+ bin=$out/bin/tree-from-tags
22+# we are using bundle exec to start in the bundled environment
23+ cat > $bin <<EOF
24+#!/bin/sh -e
25+exec ${gems}/bin/bundle exec ${ruby}/bin/ruby "$out"/share/tree-from-tags.rb "\$@"
26+EOF
27+ chmod +x $bin
28+ '';
29+
30+ meta = with stdenv.lib; {
31+ description = "Create file hierarchies from media tags";
32+ homepage = https://www.emacswiki.org/emacs/Bongo;
33+ platforms = ruby.meta.platforms;
34+ maintainers = [ maintainers.livnev maintainers.dbrock ];
35+ license = licenses.gpl2Plus;
36+ };
37+}
pkgs/applications/audio/tree-from-tags/gemset.nixnew file+10
@@ -0,0 +1,10 @@
1+{
2+ taglib-ruby = {
3+ source = {
4+ remotes = ["https://rubygems.org"];
5+ sha256 = "0r8g7zdncc6243d000jn0grc1n70rn9mx16vggy3q7c4wgsa37xi";
6+ type = "gem";
7+ };
8+ version = "0.7.1";
9+ };
10+}
pkgs/top-level/all-packages.nix+2
@@ -20646,6 +20646,8 @@ in
2064620646
2064720647 trayer = callPackage ../applications/window-managers/trayer { };
2064820648
20649+ tree-from-tags = callPackage ../applications/audio/tree-from-tags { };
20650+
2064920651 tdrop = callPackage ../applications/misc/tdrop { };
2065020652
2065120653 tree = callPackage ../tools/system/tree {};