From 12326791a7ee715eaedaaa9523138b18da842f9d Mon Sep 17 00:00:00 2001 From: Ilan Joselevich Date: Thu, 29 Jul 2021 18:38:17 +0300 Subject: [PATCH] szyszka: init at 2.0.0 --- pkgs/tools/misc/szyszka/default.nix | 45 +++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 47 insertions(+) create mode 100755 pkgs/tools/misc/szyszka/default.nix diff --git a/pkgs/tools/misc/szyszka/default.nix b/pkgs/tools/misc/szyszka/default.nix new file mode 100755 index 000000000000..61bc41b269ba --- /dev/null +++ b/pkgs/tools/misc/szyszka/default.nix @@ -0,0 +1,45 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, pkg-config +, glib +, cairo +, pango +, atk +, gdk-pixbuf +, gtk3 +}: + +rustPlatform.buildRustPackage rec { + pname = "szyszka"; + version = "2.0.0"; + + src = fetchFromGitHub { + owner = "qarmin"; + repo = pname; + rev = version; + sha256 = "sha256-TQwDvkWWlk09kVVaVI56isJi+X9UXWnoz+2PVyK9BGc="; + }; + + cargoSha256 = "sha256-2uyMA2nIOPkc5+qImFn3eUVq2AxHu3Xj91TpkKswjao="; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + glib + cairo + pango + atk + gdk-pixbuf + gtk3 + ]; + + meta = with lib; { + description = "A simple but powerful and fast bulk file renamer"; + homepage = "https://github.com/qarmin/szyszka"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ kranzes ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9f8cf013ab8a..5bd2be57d685 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14472,6 +14472,8 @@ in stdenv = gccStdenv; }; + szyszka = callPackage ../tools/misc/szyszka { }; + taplo-cli = callPackage ../development/tools/taplo-cli { inherit (darwin.apple_sdk.frameworks) Security; };