depot/third_party/nixpkgs/pkgs/tools/X11/sx/default.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

44 lines
889 B
Nix

{ lib
, bash
, coreutils
, fetchFromGitHub
, resholve
, xorg
}:
resholve.mkDerivation rec {
pname = "sx";
version = "2.1.7";
src = fetchFromGitHub {
owner = "earnestly";
repo = pname;
rev = version;
sha256 = "0xv15m30nhcknasqiybj5wwf7l91q4a4jf6xind8x5x00c6br6nl";
};
makeFlags = [ "PREFIX=$(out)" ];
solutions = {
sx = {
scripts = [ "bin/sx" ];
interpreter = "${bash}/bin/sh";
inputs = [
coreutils
xorg.xauth
xorg.xorgserver
];
execer = [
"cannot:${xorg.xorgserver}/bin/Xorg"
];
};
};
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 ];
};
}