1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-11 23:24:35 +00:00
nixpkgs/pkgs/tools/X11/sx/default.nix
2021-07-10 12:39:36 -04:00

31 lines
812 B
Nix

{ 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 ];
};
}