14 resholve.mkDerivation rec {
16 version = "unstable-2020-03-20";
18 src = fetchFromGitHub {
21 rev = "375bbba3aa700c8b3b33645a7fb70605c8b0ff0c";
22 sha256 = "19r5y721yrxhd9jp99s29jjvm0p87vl6xfjlcj38bljq903f21cl";
23 fetchSubmodules = true;
27 Remove reference to `%LIBDIR%/liblist.sh`. This would be linked to the
28 non-resholved of the library in the final derivation.
30 Patching out the library check; it's bad on multiple levels:
31 1. The check literally breaks if it fails.
32 See https://github.com/Ventto/mons/pull/49
33 2. It doesn't need to do this; source would fail with a
34 sensible message if the script was missing.
35 3. resholve can't wrestle with test/[] (at least until
36 https://github.com/abathur/resholve/issues/78)
39 substituteInPlace mons.sh \
40 --replace "lib='%LIBDIR%/liblist.sh'" "" \
41 --replace '[ ! -r "$lib" ] && { "$lib: library not found."; exit 1; }' ""
48 "lib/libshlist/liblist.sh"
50 interpreter = "${bash}/bin/sh";
60 "$lib" = [ "lib/libshlist/liblist.sh" ];
61 "$XRANDR" = [ "xrandr" ];
65 has a whole slate of *flag variables that it sets to either
66 the true or false builtin and then executes...
85 nativeBuildInputs = [ help2man ];
93 description = "POSIX Shell script to quickly manage 2-monitors display";
94 homepage = "https://github.com/Ventto/mons.git";
95 license = licenses.mit;
96 maintainers = with maintainers; [ thiagokokada ];
97 platforms = platforms.unix;