summary refs log tree commit diff
path: root/pkgs/tools/X11
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2021-07-09 23:21:11 -0400
committerfigsoda <figsoda@pm.me>2021-07-10 12:39:36 -0400
commit6c3c1e46a2a90c891920c9487598770a24d71922 (patch)
treee9bddea12d654a660634960c9e4948a99c2ac561 /pkgs/tools/X11
parentdb6e03fe8aa6ee44b2fa805ebe492d45b81a9ac1 (diff)
downloadnixpkgs-6c3c1e46a2a90c891920c9487598770a24d71922.tar
nixpkgs-6c3c1e46a2a90c891920c9487598770a24d71922.tar.gz
nixpkgs-6c3c1e46a2a90c891920c9487598770a24d71922.tar.bz2
nixpkgs-6c3c1e46a2a90c891920c9487598770a24d71922.tar.lz
nixpkgs-6c3c1e46a2a90c891920c9487598770a24d71922.tar.xz
nixpkgs-6c3c1e46a2a90c891920c9487598770a24d71922.tar.zst
nixpkgs-6c3c1e46a2a90c891920c9487598770a24d71922.zip
sx: init at 2.1.7
Diffstat (limited to 'pkgs/tools/X11')
-rw-r--r--pkgs/tools/X11/sx/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/X11/sx/default.nix b/pkgs/tools/X11/sx/default.nix
new file mode 100644
index 00000000000..c03d4443fcf
--- /dev/null
+++ b/pkgs/tools/X11/sx/default.nix
@@ -0,0 +1,30 @@
+{ coreutils, fetchFromGitHub, lib, makeWrapper, stdenv, util-linux, xauth, xorgserver }:
+
+stdenv.mkDerivation rec {
+  pname = "sx";
+  version = "2.1.7";
+
+  src = fetchFromGitHub {
+    owner = "earnestly";
+    repo = pname;
+    rev = version;
+    sha256 = "0xv15m30nhcknasqiybj5wwf7l91q4a4jf6xind8x5x00c6br6nl";
+  };
+
+  nativeBuildInputs = [ makeWrapper ];
+
+  makeFlags = [ "PREFIX=$(out)" ];
+
+  postInstall = ''
+    wrapProgram $out/bin/sx \
+      --prefix PATH : ${lib.makeBinPath [ coreutils util-linux xorgserver xauth ]}
+  '';
+
+  meta = with lib; {
+    description = "Simple alternative to both xinit and startx for starting a Xorg server";
+    homepage = "https://github.com/earnestly/sx";
+    license = licenses.mit;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ figsoda ];
+  };
+}