mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 06:47:09 +03:00
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:
parent
631b2348f3
commit
cd032364b6
3
pkgs/applications/audio/tree-from-tags/Gemfile
Normal file
3
pkgs/applications/audio/tree-from-tags/Gemfile
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
source "https://rubygems.org"
|
||||||
|
|
||||||
|
gem "taglib-ruby"
|
13
pkgs/applications/audio/tree-from-tags/Gemfile.lock
Normal file
13
pkgs/applications/audio/tree-from-tags/Gemfile.lock
Normal 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
|
37
pkgs/applications/audio/tree-from-tags/default.nix
Normal file
37
pkgs/applications/audio/tree-from-tags/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
10
pkgs/applications/audio/tree-from-tags/gemset.nix
Normal file
10
pkgs/applications/audio/tree-from-tags/gemset.nix
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
taglib-ruby = {
|
||||||
|
source = {
|
||||||
|
remotes = ["https://rubygems.org"];
|
||||||
|
sha256 = "0r8g7zdncc6243d000jn0grc1n70rn9mx16vggy3q7c4wgsa37xi";
|
||||||
|
type = "gem";
|
||||||
|
};
|
||||||
|
version = "0.7.1";
|
||||||
|
};
|
||||||
|
}
|
@ -20646,6 +20646,8 @@ in
|
|||||||
|
|
||||||
trayer = callPackage ../applications/window-managers/trayer { };
|
trayer = callPackage ../applications/window-managers/trayer { };
|
||||||
|
|
||||||
|
tree-from-tags = callPackage ../applications/audio/tree-from-tags { };
|
||||||
|
|
||||||
tdrop = callPackage ../applications/misc/tdrop { };
|
tdrop = callPackage ../applications/misc/tdrop { };
|
||||||
|
|
||||||
tree = callPackage ../tools/system/tree {};
|
tree = callPackage ../tools/system/tree {};
|
||||||
|
Loading…
Reference in New Issue
Block a user