Unverified Commit 2f037ff5 authored by wxt's avatar wxt
Browse files

tree-from-tags: improvement

parent 5396211e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
  taglib-ruby = {
    source = {
      remotes = [ "https://rubygems.org" ];
      sha256 = "0r8g7zdncc6243d000jn0grc1n70rn9mx16vggy3q7c4wgsa37xi";
      hash = "sha256-sZ+h9OOEHTz8e9uEXpPN4NjA8gNWAgDaIMIwZts/D2U=";
      type = "gem";
    };
    version = "0.7.1";
+15 −12
Original line number Diff line number Diff line
@@ -16,16 +16,19 @@ 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/
@@ -38,15 +41,15 @@ stdenv.mkDerivation {
    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";
  };
}