mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00

They are not doing anything right now. This is in preparation for their complete removal from the tree. Note: several changes that affect the derivation inputs (e.g. removal of references to stub paths in build instructions) were left out. They will be cleaned up the next iteration and will require special care. Note: this PR is a result of a mix of ugly regex (not AST) based automation and some manual labor. For reference, the regex automation part was hacked in: https://github.com/booxter/nix-clean-apple_sdk Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
111 lines
2.2 KiB
Nix
111 lines
2.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
dbus,
|
|
ffmpeg,
|
|
x264,
|
|
libva,
|
|
gst_all_1,
|
|
xorg,
|
|
libdrm,
|
|
pkg-config,
|
|
pango,
|
|
pipewire,
|
|
cmake,
|
|
git,
|
|
autoconf,
|
|
libtool,
|
|
typescript,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "weylus";
|
|
version = "unstable-2022-06-07";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "H-M-H";
|
|
repo = pname;
|
|
rev = "b169a6be2bf3e8d105273d92f032cca5438de53a";
|
|
sha256 = "sha256-J9eVFIfmyBviVuT1MYKb5yoacbPqOAT3A8jahWv5qw8=";
|
|
};
|
|
|
|
buildInputs =
|
|
[
|
|
ffmpeg
|
|
x264
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
dbus
|
|
libva
|
|
gst_all_1.gst-plugins-base
|
|
xorg.libXext
|
|
xorg.libXft
|
|
xorg.libXinerama
|
|
xorg.libXcursor
|
|
xorg.libXrender
|
|
xorg.libXfixes
|
|
xorg.libXtst
|
|
xorg.libXrandr
|
|
xorg.libXcomposite
|
|
xorg.libXi
|
|
xorg.libXv
|
|
pango
|
|
libdrm
|
|
];
|
|
|
|
nativeBuildInputs =
|
|
[
|
|
cmake
|
|
git
|
|
typescript
|
|
makeWrapper
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
pkg-config
|
|
autoconf
|
|
libtool
|
|
];
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
outputHashes = {
|
|
"autopilot-0.4.0" = "sha256-1DRuhAAXaIADUmXlDVr8UNbI/Ab2PYdrx9Qh0j9rTX8=";
|
|
};
|
|
};
|
|
|
|
cargoBuildFlags = [ "--features=ffmpeg-system" ];
|
|
cargoTestFlags = [ "--features=ffmpeg-system" ];
|
|
|
|
postFixup =
|
|
let
|
|
GST_PLUGIN_PATH = lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" [
|
|
gst_all_1.gst-plugins-base
|
|
pipewire
|
|
];
|
|
in
|
|
lib.optionalString stdenv.hostPlatform.isLinux ''
|
|
wrapProgram $out/bin/weylus --prefix GST_PLUGIN_PATH : ${GST_PLUGIN_PATH}
|
|
'';
|
|
|
|
postInstall = ''
|
|
install -vDm755 weylus.desktop $out/share/applications/weylus.desktop
|
|
'';
|
|
|
|
env = {
|
|
NIX_CFLAGS_COMPILE = toString [
|
|
"-Wno-incompatible-pointer-types"
|
|
];
|
|
};
|
|
|
|
meta = with lib; {
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
description = "Use your tablet as graphic tablet/touch screen on your computer";
|
|
mainProgram = "weylus";
|
|
homepage = "https://github.com/H-M-H/Weylus";
|
|
license = with licenses; [ agpl3Only ];
|
|
maintainers = with maintainers; [ lom ];
|
|
};
|
|
}
|