wzmach: init at 1.0.0

This commit is contained in:
Gabriel Arazas 2022-06-08 22:39:17 +08:00
parent 1c3ccc6d57
commit 46e12831f4
2 changed files with 30 additions and 0 deletions

View File

@ -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)

29
pkgs/wzmach/default.nix Normal file
View File

@ -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;
};
}