diff --git a/pkgs/by-name/xd/xdm/package.nix b/pkgs/by-name/xd/xdm/package.nix new file mode 100644 index 000000000000..8d00553a43c4 --- /dev/null +++ b/pkgs/by-name/xd/xdm/package.nix @@ -0,0 +1,86 @@ +{ + lib, + stdenv, + fetchFromGitLab, + pkg-config, + util-macros, + autoreconfHook, + wrapWithXFileSearchPathHook, + libx11, + libxau, + libxaw, + libxcrypt, + libxdmcp, + libxext, + libxft, + libxinerama, + libxmu, + libxpm, + libxrender, + libxt, + nix-update-script, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "xdm"; + version = "1.1.17"; + + src = fetchFromGitLab { + domain = "gitlab.freedesktop.org"; + owner = "xorg"; + repo = "app/xdm"; + tag = "xdm-${finalAttrs.version}"; + hash = "sha256-PhMctvL+Vp9uNmTtowMHzkoekieVCgNZCfUZ1XpjpyY="; + }; + + strictDeps = true; + + nativeBuildInputs = [ + pkg-config + util-macros + autoreconfHook + wrapWithXFileSearchPathHook + ]; + + buildInputs = [ + libx11 + libxau + libxaw + libxcrypt + libxdmcp + libxext + libxft + libxinerama + libxmu + libxpm + libxrender + libxt + ]; + + configureFlags = [ + "ac_cv_path_RAWCPP=${stdenv.cc.targetPrefix}cpp" + ] + # checking for /dev/urandom... configure: error: cannot check for file existence when cross compiling + ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ + "ac_cv_file__dev_urandom=true" + "ac_cv_file__dev_random=true" + ]; + + installFlags = [ "appdefaultdir=$(out)/share/X11/app-defaults" ]; + + passthru.updateScript = nix-update-script { extraArgs = [ "--version-regex=xdm-(.*)" ]; }; + + meta = { + description = "X Display Manager with support for XDMCP, host chooser"; + homepage = "https://gitlab.freedesktop.org/xorg/app/xdm"; + license = with lib.licenses; [ + mit + mitOpenGroup + x11 + bsd3ClauseTso + bsd2 + ]; + mainProgram = "xdm"; + maintainers = [ ]; + platforms = lib.platforms.unix; + }; +}) diff --git a/pkgs/servers/x11/xorg/default.nix b/pkgs/servers/x11/xorg/default.nix index ff479dcb0adb..535fdf04308a 100644 --- a/pkgs/servers/x11/xorg/default.nix +++ b/pkgs/servers/x11/xorg/default.nix @@ -121,6 +121,7 @@ xconsole, xcursorgen, xcursor-themes, + xdm, xdriinfo, xev, xeyes, @@ -196,6 +197,7 @@ self: with self; { xcompmgr xconsole xcursorgen + xdm xdriinfo xev xeyes @@ -406,66 +408,6 @@ self: with self; { }) ) { }; - # THIS IS A GENERATED FILE. DO NOT EDIT! - xdm = callPackage ( - { - stdenv, - pkg-config, - fetchurl, - libX11, - libXau, - libXaw, - libXdmcp, - libXext, - libXft, - libXinerama, - libXmu, - libXpm, - xorgproto, - libXrender, - libXt, - wrapWithXFileSearchPathHook, - testers, - }: - stdenv.mkDerivation (finalAttrs: { - pname = "xdm"; - version = "1.1.17"; - builder = ./builder.sh; - src = fetchurl { - url = "mirror://xorg/individual/app/xdm-1.1.17.tar.xz"; - sha256 = "0spbxjxxrnfxf8gqncd7bry3z7dvr74ba987cx9iq0qsj7qax54l"; - }; - hardeningDisable = [ - "bindnow" - "relro" - ]; - strictDeps = true; - nativeBuildInputs = [ - pkg-config - wrapWithXFileSearchPathHook - ]; - buildInputs = [ - libX11 - libXau - libXaw - libXdmcp - libXext - libXft - libXinerama - libXmu - libXpm - xorgproto - libXrender - libXt - ]; - passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; - meta = { - pkgConfigModules = [ ]; - platforms = lib.platforms.unix; - }; - }) - ) { }; - # THIS IS A GENERATED FILE. DO NOT EDIT! xdpyinfo = callPackage ( { diff --git a/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl b/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl index 070ce5d76e3f..c0f6faebd7f8 100755 --- a/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl +++ b/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl @@ -452,6 +452,7 @@ print OUT <