Commit graph

8 commits

Author SHA1 Message Date
Atemu 5194de18ee libstrangle: support 32bit via implicit layer 2022-07-07 18:40:56 +02:00
Atemu 1a37a30af7 libstrangle: use direct nix store path in layer json
This allows you to load libstrangle without setting LD_LIBRARY_PATH to include
it. Only ENABLE_VK_LAYER_TORKEL104_libstrangle=1 is required now, as expected of
an implicit layer.

Previously, you were required to run your VK app via the wrapper:

    STRANGLE_FPS=30 strangle vkcube

Now you can control it via simple environment variables alone:

    ENABLE_VK_LAYER_TORKEL104_libstrangle=1 STRANGLE_FPS=30 vkcube
2022-07-07 18:39:16 +02:00
Solene Rapenne 922b173bf3 libstrangle: 0.1.1 -> unstable-202202022 2022-04-29 09:24:20 -05:00
Samuel Gräfenstein c55ef4cf0e
libstrangle: add meta.mainProgram 2021-04-29 14:59:31 +02:00
jakobrs b0ff7414c2 libstrangle: 2017-02-22 -> 0.1.1 2021-01-14 07:36:01 +01:00
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Anders Kaseorg 3cd8ce3bce treewide: Fix unsafe concatenation of $LD_LIBRARY_PATH
Naive concatenation of $LD_LIBRARY_PATH can result in an empty
colon-delimited segment; this tells glibc to load libraries from the
current directory, which is definitely wrong, and may be a security
vulnerability if the current directory is untrusted.  (See #67234, for
example.)  Fix this throughout the tree.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2020-01-15 09:47:03 +01:00
Kirill Boltaev 979710b4a0 libstrangle: init at 2017-02-22 2019-07-15 22:49:32 +03:00