tree-from-tags: improvement
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
taglib-ruby = {
|
||||
source = {
|
||||
remotes = [ "https://rubygems.org" ];
|
||||
sha256 = "0r8g7zdncc6243d000jn0grc1n70rn9mx16vggy3q7c4wgsa37xi";
|
||||
hash = "sha256-sZ+h9OOEHTz8e9uEXpPN4NjA8gNWAgDaIMIwZts/D2U=";
|
||||
type = "gem";
|
||||
};
|
||||
version = "0.7.1";
|
||||
|
||||
@@ -16,37 +16,40 @@ in
|
||||
stdenv.mkDerivation {
|
||||
pname = "tree-from-tags";
|
||||
inherit version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dbrock";
|
||||
repo = "bongo";
|
||||
rev = version;
|
||||
sha256 = "1nszph9mn98flyhn1jq3y6mdh6jymjkvj5ng36ql016dj92apvhv";
|
||||
hash = "sha256-G+6rRJLNBECxGc8WuaesXhrYqvEDy2Chpw4lWxO8X9s=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
gems
|
||||
ruby
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/{bin,share}
|
||||
cp tree-from-tags.rb $out/share/
|
||||
bin=$out/bin/tree-from-tags
|
||||
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
|
||||
cat > $bin <<EOF
|
||||
#!/bin/sh -e
|
||||
exec ${gems}/bin/bundle exec ${ruby}/bin/ruby "$out"/share/tree-from-tags.rb "\$@"
|
||||
EOF
|
||||
chmod +x $bin
|
||||
chmod +x $bin
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Create file hierarchies from media tags";
|
||||
homepage = "https://www.emacswiki.org/emacs/Bongo";
|
||||
platforms = ruby.meta.platforms;
|
||||
maintainers = [
|
||||
maintainers.livnev
|
||||
maintainers.dbrock
|
||||
platforms = lib.ruby.meta.platforms;
|
||||
maintainers = with lib.maintainers; [
|
||||
livnev
|
||||
dbrock
|
||||
];
|
||||
license = licenses.gpl2Plus;
|
||||
license = lib.licenses.gpl2Plus;
|
||||
mainProgram = "tree-from-tags";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user