diff --git a/pkgs/tools/misc/machin/default.nix b/pkgs/tools/misc/machin/default.nix new file mode 100644 index 0000000000000..58974540c7dd8 --- /dev/null +++ b/pkgs/tools/misc/machin/default.nix @@ -0,0 +1,32 @@ +{ lib +, stdenv +, nasm +, fetchFromGitHub +, rustPlatform +}: + +rustPlatform.buildRustPackage rec { + pname = "machin"; + version = "0.5.3"; + + src = fetchFromGitHub { + owner = "mothsart"; + repo = pname; + rev = version; + sha256 = "0b1l8gw60zs58wckm82v9jiw1q6b65srr523snyrp7iibh9vnb7d"; + }; + + cargoSha256 = "1afynsf1xpys42bvii3rlrm4p2bl36sziby28r8lrwp7947bs800"; + + nativeBuildInputs = [ nasm ]; + + postInstall = "make PREFIX=$out copy-data"; + + meta = with lib; { + description = "A cli program that simplifies file conversions and batch processing. It's inspired from filter/map/reduce"; + homepage = "https://github.com/mothsart/machin"; + changelog = "https://github.com/mothsart/machin/releases/tag/${version}"; + maintainers = with maintainers; [ mothsart ]; + license = with licenses; [ mit ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ce94bb7392ead..b256378c73eff 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4154,6 +4154,8 @@ with pkgs; lynis = callPackage ../tools/security/lynis { }; + machin = callPackage ../tools/misc/machin { }; + maigret = callPackage ../tools/security/maigret { }; maliit-framework = libsForQt5.callPackage ../applications/misc/maliit-framework { };