mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 11:00:19 +03:00
40 lines
784 B
Nix
40 lines
784 B
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchFromGitHub
|
|
, patsh
|
|
, xorg
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "sx";
|
|
version = "2.1.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "earnestly";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0xv15m30nhcknasqiybj5wwf7l91q4a4jf6xind8x5x00c6br6nl";
|
|
};
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
nativeBuildInputs = [ patsh ];
|
|
|
|
buildInputs = [
|
|
xorg.xauth
|
|
xorg.xorgserver
|
|
];
|
|
|
|
postInstall = ''
|
|
patsh -f $out/bin/sx -s ${builtins.storeDir}
|
|
'';
|
|
|
|
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 thiagokokada ];
|
|
};
|
|
}
|