mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
woomer: init at 0.1.0
This commit is contained in:
parent
635c7ea329
commit
fe1a600b99
1091
pkgs/by-name/wo/woomer/Cargo.lock
generated
Normal file
1091
pkgs/by-name/wo/woomer/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
74
pkgs/by-name/wo/woomer/package.nix
Normal file
74
pkgs/by-name/wo/woomer/package.nix
Normal file
@ -0,0 +1,74 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
cmake,
|
||||
fetchFromGitHub,
|
||||
glfw3,
|
||||
nix-update-script,
|
||||
pkg-config,
|
||||
rustPlatform,
|
||||
wayland,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "woomer";
|
||||
version = "0.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "coffeeispower";
|
||||
repo = "woomer";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-puALhN54ma2KToXUF8ipaYysyayjaSp+ISZ3AgQvniw=";
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
"libwayshot-0.3.2-dev" = "sha256-QETmdzA7a1XMGdMU7tUNSJzzDw/4nkH9gKZv3pP0Nwc=";
|
||||
};
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
rustPlatform.bindgenHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glfw3
|
||||
wayland
|
||||
];
|
||||
|
||||
# `raylib-sys` wants to compile examples that don't exist in its crate
|
||||
doCheck = false;
|
||||
|
||||
env = {
|
||||
# Force linking so libwayland-client.so can be `dlopen`'d
|
||||
CARGO_BUILD_RUSTFLAGS = toString (
|
||||
map (arg: "-C link-arg=" + arg) [
|
||||
"-Wl,--push-state,--as-needed"
|
||||
"-lwayland-client"
|
||||
"-Wl,--pop-state"
|
||||
]
|
||||
);
|
||||
};
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Zoomer application for Wayland inspired by tsoding's boomer";
|
||||
homepage = "https://github.com/coffeeispower/woomer";
|
||||
changelog = "https://github.com/coffeeispower/woomer/releases/tag/${version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ getchoo ];
|
||||
mainProgram = "woomer";
|
||||
inherit (wayland.meta) platforms;
|
||||
# TODO: Remove after upstream is no longer affected by
|
||||
# https://github.com/raylib-rs/raylib-rs/issues/74
|
||||
broken = stdenv.hostPlatform.isAarch64;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user