mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 10:47:44 +00:00
sx: use patsh instead of resholve
This commit is contained in:
parent
58ff418fec
commit
3e3f5eba2c
@ -1,12 +1,11 @@
|
||||
{ lib
|
||||
, bash
|
||||
, coreutils
|
||||
, stdenvNoCC
|
||||
, fetchFromGitHub
|
||||
, resholve
|
||||
, patsh
|
||||
, xorg
|
||||
}:
|
||||
|
||||
resholve.mkDerivation rec {
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "sx";
|
||||
version = "2.1.7";
|
||||
|
||||
@ -19,20 +18,16 @@ resholve.mkDerivation rec {
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
solutions = {
|
||||
sx = {
|
||||
scripts = [ "bin/sx" ];
|
||||
interpreter = "${bash}/bin/sh";
|
||||
inputs = [
|
||||
coreutils
|
||||
xorg.xauth
|
||||
xorg.xorgserver
|
||||
];
|
||||
execer = [
|
||||
"cannot:${xorg.xorgserver}/bin/Xorg"
|
||||
];
|
||||
};
|
||||
};
|
||||
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";
|
||||
|
Loading…
Reference in New Issue
Block a user