From ce8874a16cb9fc5d9d47203745f9250d5cdde1ef Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sat, 10 Sep 2022 21:02:41 +0800 Subject: [PATCH] eartag: init at 0.2.1 --- pkgs/applications/audio/eartag/default.nix | 78 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 80 insertions(+) create mode 100644 pkgs/applications/audio/eartag/default.nix diff --git a/pkgs/applications/audio/eartag/default.nix b/pkgs/applications/audio/eartag/default.nix new file mode 100644 index 000000000000..aad765041e4b --- /dev/null +++ b/pkgs/applications/audio/eartag/default.nix @@ -0,0 +1,78 @@ +{ stdenv +, lib +, fetchFromGitHub +, meson +, ninja +, pkg-config +, wrapGAppsHook4 +, libadwaita +, gettext +, glib +, gobject-introspection +, desktop-file-utils +, appstream-glib +, gtk4 +, librsvg +, python3Packages +}: + +python3Packages.buildPythonApplication rec { + pname = "eartag"; + version = "0.2.1"; + format = "other"; + + src = fetchFromGitHub { + owner = "knuxify"; + repo = pname; + rev = version; + sha256 = "sha256-TlY2F2y7ZZ9f+vkYYkES5zoIGcuTWP1+rOJI62wc4SU="; + }; + + postPatch = '' + chmod +x ./build-aux/meson/postinstall.py + patchShebangs ./build-aux/meson/postinstall.py + substituteInPlace ./build-aux/meson/postinstall.py \ + --replace "gtk-update-icon-cache" "gtk4-update-icon-cache" + ''; + + nativeBuildInputs = [ + meson + ninja + glib + desktop-file-utils + appstream-glib + pkg-config + gettext + gobject-introspection + wrapGAppsHook4 + ] ++ lib.optional stdenv.isDarwin gtk4; # for gtk4-update-icon-cache + + buildInputs = [ + librsvg + libadwaita + ]; + + propagatedBuildInputs = with python3Packages; [ + pygobject3 + eyeD3 + pillow + mutagen + pytaglib + python-magic + ]; + + dontWrapGApps = true; + preFixup = '' + makeWrapperArgs+=("''${gappsWrapperArgs[@]}") + ''; + + meta = with lib; { + homepage = "https://github.com/knuxify/eartag"; + description = "Simple music tag editor"; + # This seems to be using ICU license but we're flagging it to MIT license + # since ICU license is a modified version of MIT and to prevent it from + # being incorrectly identified as unfree software. + license = licenses.mit; + maintainers = with maintainers; [ foo-dogsquared ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b0266aa4d03f..b75662783b4a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2501,6 +2501,8 @@ with pkgs; droidmote = callPackage ../tools/inputmethods/droidmote { }; + eartag = callPackage ../applications/audio/eartag { }; + ecdsautils = callPackage ../tools/security/ecdsautils { }; echidna = haskell.lib.compose.justStaticExecutables (haskellPackages.callPackage (../tools/security/echidna) { });