forked from mirrors/nixpkgs
Merge pull request #61701 from livnev/tree-from-tags
tree-from-tags: init at 1.1
This commit is contained in:
commit
4e7cd97fa4
|
@ -2954,6 +2954,15 @@
|
|||
github = "listx";
|
||||
name = "Linus Arver";
|
||||
};
|
||||
livnev = {
|
||||
email = "lev@liv.nev.org.uk";
|
||||
github = "livnev";
|
||||
name = "Lev Livnev";
|
||||
keys = [{
|
||||
longkeyid = "rsa2048/0x68FF81E6A7850F49";
|
||||
fingerprint = "74F5 E5CC 19D3 B5CB 608F 6124 68FF 81E6 A785 0F49";
|
||||
}];
|
||||
};
|
||||
luis = {
|
||||
email = "luis.nixos@gmail.com";
|
||||
github = "Luis-Hebendanz";
|
||||
|
|
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";
|
||||
};
|
||||
}
|
|
@ -20682,6 +20682,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 {};
|
||||
|
|
Loading…
Reference in a new issue