2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
2022-12-02 08:20:57 +00:00
|
|
|
, stdenvNoCC
|
2022-06-16 17:23:12 +00:00
|
|
|
, fetchFromGitHub
|
2022-12-02 08:20:57 +00:00
|
|
|
, patsh
|
2022-10-21 18:38:19 +00:00
|
|
|
, xorg
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
2021-07-14 22:03:04 +00:00
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2021-07-14 22:03:04 +00:00
|
|
|
pname = "sx";
|
|
|
|
version = "2.1.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "earnestly";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0xv15m30nhcknasqiybj5wwf7l91q4a4jf6xind8x5x00c6br6nl";
|
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
nativeBuildInputs = [ patsh ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
xorg.xauth
|
|
|
|
xorg.xorgserver
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
patsh -f $out/bin/sx -s ${builtins.storeDir}
|
|
|
|
'';
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
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;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ figsoda thiagokokada ];
|
2021-07-14 22:03:04 +00:00
|
|
|
};
|
|
|
|
}
|