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
This commit is contained in:
Lev Livnev 2019-02-24 18:08:35 +00:00
parent 631b2348f3
commit cd032364b6
No known key found for this signature in database
GPG Key ID: 68FF81E6A7850F49
5 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,3 @@
source "https://rubygems.org"
gem "taglib-ruby"

View File

@ -0,0 +1,13 @@
GEM
remote: https://rubygems.org/
specs:
taglib-ruby (0.7.1)
PLATFORMS
ruby
DEPENDENCIES
taglib-ruby
BUNDLED WITH
1.16.3

View File

@ -0,0 +1,37 @@
{ stdenv, bundlerEnv, ruby, fetchFromGitHub }:
let
version = "1.1";
gems = bundlerEnv {
name = "tree-from-tags-${version}-gems";
inherit ruby;
gemdir = ./.;
};
in stdenv.mkDerivation {
name = "tree-from-tags-${version}";
src = fetchFromGitHub {
owner = "dbrock";
repo = "bongo";
rev = version;
sha256 = "1nszph9mn98flyhn1jq3y6mdh6jymjkvj5ng36ql016dj92apvhv";
};
buildInputs = [ gems ruby ];
installPhase = ''
mkdir -p $out/{bin,share}
cp tree-from-tags.rb $out/share/
bin=$out/bin/tree-from-tags
# we are using bundle exec to start in the bundled environment
cat > $bin <<EOF
#!/bin/sh -e
exec ${gems}/bin/bundle exec ${ruby}/bin/ruby "$out"/share/tree-from-tags.rb "\$@"
EOF
chmod +x $bin
'';
meta = with stdenv.lib; {
description = "Create file hierarchies from media tags";
homepage = https://www.emacswiki.org/emacs/Bongo;
platforms = ruby.meta.platforms;
maintainers = [ maintainers.livnev maintainers.dbrock ];
license = licenses.gpl2Plus;
};
}

View File

@ -0,0 +1,10 @@
{
taglib-ruby = {
source = {
remotes = ["https://rubygems.org"];
sha256 = "0r8g7zdncc6243d000jn0grc1n70rn9mx16vggy3q7c4wgsa37xi";
type = "gem";
};
version = "0.7.1";
};
}

View File

@ -20646,6 +20646,8 @@ in
trayer = callPackage ../applications/window-managers/trayer { };
tree-from-tags = callPackage ../applications/audio/tree-from-tags { };
tdrop = callPackage ../applications/misc/tdrop { };
tree = callPackage ../tools/system/tree {};