From b48e761b2cea3a2884073b9a18252e7e98297898 Mon Sep 17 00:00:00 2001 From: Markus Schneider Date: Sun, 2 Feb 2020 21:37:57 +0100 Subject: [PATCH] mons: init at 20200107 (#79000) Co-authored-by: mschneiderwng --- pkgs/tools/misc/mons/default.nix | 27 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/tools/misc/mons/default.nix diff --git a/pkgs/tools/misc/mons/default.nix b/pkgs/tools/misc/mons/default.nix new file mode 100644 index 000000000000..c1dbfa0aa49a --- /dev/null +++ b/pkgs/tools/misc/mons/default.nix @@ -0,0 +1,27 @@ +{ stdenv, lib, fetchFromGitHub, help2man, xrandr }: + +stdenv.mkDerivation rec { + pname = "mons"; + version = "20200107"; + + src = fetchFromGitHub { + owner = "Ventto"; + repo = pname; + rev = "0c9e1a1dddff23a0525ed8e4ec9af8f9dd8cad4c"; + sha256 = "02c41mw3g1mgl91hhpz1n45iaqk9s7mdk1ixm8yv6sv17hy8rr4w"; + fetchSubmodules = true; + }; + + # PR: https://github.com/Ventto/mons/pull/36 + preConfigure = ''sed -i 's/usr\///' Makefile''; + + nativeBuildInputs = [ help2man ]; + makeFlags = [ "DESTDIR=$(out)" ]; + + meta = with lib; { + description = "POSIX Shell script to quickly manage 2-monitors display"; + homepage = "https://github.com/Ventto/mons.git"; + license = licenses.mit; + maintainers = [ maintainers.mschneider ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2b2c800735ac..5790a0330588 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1963,6 +1963,8 @@ in monetdb = callPackage ../servers/sql/monetdb { }; + mons = callPackage ../tools/misc/mons {}; + mousetweaks = callPackage ../applications/accessibility/mousetweaks { inherit (pkgs.xorg) libX11 libXtst libXfixes; };