Commit Graph

14 Commits

Author SHA1 Message Date
Sefa Eyeoglu
00b5f4e199
glfw3: nixfmt
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-11-21 23:43:17 +01:00
Sefa Eyeoglu
e584de5816
glfw3: remove with lib
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-11-21 23:42:55 +01:00
Sefa Eyeoglu
1c6ac26465
glfw3: enable strictDeps and __structuredAttrs
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-11-21 23:42:55 +01:00
Sefa Eyeoglu
bc33d600bd
glfw3: remove darwin build inputs
The new apple-sdk pattern doesn't require this anymore.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-11-21 23:42:54 +01:00
Sefa Eyeoglu
4347d8dee5
glfw3: add missing X11 substitutions
libX11-xcb.so.1 and libXxf86vm.so.1 are dlopen-ed at runtime, but are
not linked by the linker. Let's hardcode their library paths into the
code.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-11-21 23:42:54 +01:00
Sefa Eyeoglu
fbf94f5a7d
glfw3: harden wayland substitutions
Including quotes around the library names should make these
substitutions stricter.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-11-21 23:42:54 +01:00
Sefa Eyeoglu
a913a8d655
glfw3: fix library name overrides
CMAKE_C_FLAGS did not work previously, as it was defined multiple times.
Instead of fixing it, it is much more readable to use NIX_CFLAGS_COMPILE
instead of having to escape special characters across Nix, Bash and
CMake

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-11-21 23:42:53 +01:00
Ben-Miller0
bfd5f3d9ff glfw3: added vulkan support 2024-11-09 11:37:17 +00:00
K900
6a1661bd04 glfw3: don't depend on extra-cmake-modules
Not required since years ago: 2747e47393
2024-10-02 01:29:30 +03:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Someone
09f5b769ab
imgui: add pkgsCross.mingwW64 support (#342271) 2024-09-17 08:22:53 +00:00
Someone Serge
6078e0e1cb imgui: add pkgsCross.mingwW64 support 2024-09-16 10:55:03 +00:00
nicoo
2641d97cbf pkgs/by-name: Convert hashes to SRI format
Reproduction script:
	# Bulk rewrite
	./maintainers/scripts/sha-to-sri.py pkgs/by-name
	# Revert some packages which will need manual intervention
	for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do
		git checkout -- "pkgs/by-name/${n:0:2}/${n}"
	done
2024-09-15 11:24:31 +02:00
Sefa Eyeoglu
8dce7dafcf
glfw-minecraft: merge glfw-wayland-minecraft into glfw
The set-cursor patch is taken from:
<https://github.com/Admicos/minecraft-wayland/pull/56>

And other changes including fractional scaling is already upstreamed in
3.4 thus not needed anymore.

Co-authored-by: oxalica <oxalicc@pm.me>
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-09-01 15:12:21 +02:00