diff --git a/pkgs/default.nix b/pkgs/default.nix index 4d4b2fbd..a70cdbe6 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -49,5 +49,6 @@ let segno = libsForQt5.callPackage ./segno.nix { }; vpaint = libsForQt5.callPackage ./vpaint.nix { }; wayback = libsForQt5.callPackage ./wayback.nix { }; + wzmach = libsForQt5.callPackage ./wzmach { }; }; in lib.fix (lib.extends overrides packages) diff --git a/pkgs/wzmach/default.nix b/pkgs/wzmach/default.nix new file mode 100644 index 00000000..c3f0489d --- /dev/null +++ b/pkgs/wzmach/default.nix @@ -0,0 +1,29 @@ +{ stdenv, lib, rustPlatform, fetchFromGitHub, pkg-config, libinput, udev }: + +rustPlatform.buildRustPackage rec { + pname = "wzmach"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "d86leader"; + repo = "wzmach"; + rev = "v${version}"; + sha256 = "sha256-o9fCiuNTyP4vUoUm9etqdAzUnd7PmXbTm7Zhim0y4rE="; + }; + + cargoSha256 = "sha256-MknrsJuNMS5BgCbgMuqSPzxyR70y24TGsKMPOuzfkjY="; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ libinput udev ]; + + postInstall = '' + install -Dm644 config.ron -t $out/share/wzmach/examples + ''; + + meta = with lib; { + homepage = "https://github.com/d86leader/wzmach"; + description = "Gesture engine for Wayland"; + license = licenses.gpl3Only; + platform = platforms.linux; + }; +}