xrandr: refactor and move to pkgs/by-name from xorg namespace
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
xorgproto,
|
||||
libx11,
|
||||
libxrandr,
|
||||
libxrender,
|
||||
writeScript,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xrandr";
|
||||
version = "1.5.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/xrandr-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-+N11Zq23QUf6uZZGgLa7re6Hz0Bqf8/1Fxil5pSbhBw=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
xorgproto
|
||||
libx11
|
||||
libxrandr
|
||||
libxrender
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
# remove useless xkeystone script
|
||||
# it is written in a language not packaged in nixpkgs
|
||||
rm $out/bin/xkeystone
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = writeScript "update-${finalAttrs.pname}" ''
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p common-updater-scripts
|
||||
version="$(list-directory-versions --pname ${finalAttrs.pname} \
|
||||
--url https://xorg.freedesktop.org/releases/individual/app/ \
|
||||
| sort -V | tail -n1)"
|
||||
update-source-version ${finalAttrs.pname} "$version"
|
||||
'';
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Command line interface to X11 Resize, Rotate, and Reflect (RandR) extension";
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/app/xrandr";
|
||||
license = lib.licenses.hpndSellVariant;
|
||||
mainProgram = "xrandr";
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
@@ -50,6 +50,7 @@
|
||||
xorgproto,
|
||||
xorg-sgml-doctools,
|
||||
xprop,
|
||||
xrandr,
|
||||
xrefresh,
|
||||
xtrans,
|
||||
xwininfo,
|
||||
@@ -87,6 +88,7 @@ self: with self; {
|
||||
xmodmap
|
||||
xorgproto
|
||||
xprop
|
||||
xrandr
|
||||
xrefresh
|
||||
xtrans
|
||||
xwininfo
|
||||
@@ -6554,46 +6556,6 @@ self: with self; {
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xrandr = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
libX11,
|
||||
xorgproto,
|
||||
libXrandr,
|
||||
libXrender,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xrandr";
|
||||
version = "1.5.3";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/xrandr-1.5.3.tar.xz";
|
||||
sha256 = "0744kfafd98q2zswyzva837qgvmdpfv80ilnp7x4fhdpmmk7bpgq";
|
||||
};
|
||||
hardeningDisable = [
|
||||
"bindnow"
|
||||
"relro"
|
||||
];
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
libX11
|
||||
xorgproto
|
||||
libXrandr
|
||||
libXrender
|
||||
];
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
meta = {
|
||||
pkgConfigModules = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xrdb = callPackage (
|
||||
{
|
||||
|
||||
@@ -343,6 +343,7 @@ print OUT <<EOF;
|
||||
xorgproto,
|
||||
xorg-sgml-doctools,
|
||||
xprop,
|
||||
xrandr,
|
||||
xrefresh,
|
||||
xtrans,
|
||||
xwininfo,
|
||||
@@ -380,6 +381,7 @@ self: with self; {
|
||||
xmodmap
|
||||
xorgproto
|
||||
xprop
|
||||
xrandr
|
||||
xrefresh
|
||||
xtrans
|
||||
xwininfo
|
||||
|
||||
@@ -1133,15 +1133,6 @@ self: super:
|
||||
};
|
||||
});
|
||||
|
||||
xrandr = super.xrandr.overrideAttrs (attrs: {
|
||||
postInstall = ''
|
||||
rm $out/bin/xkeystone
|
||||
'';
|
||||
meta = attrs.meta // {
|
||||
mainProgram = "xrandr";
|
||||
};
|
||||
});
|
||||
|
||||
xset = addMainProgram super.xset { };
|
||||
xsetroot = addMainProgram super.xsetroot { };
|
||||
xsm = addMainProgram super.xsm { };
|
||||
|
||||
@@ -43,7 +43,6 @@ mirror://xorg/individual/app/xmag-1.0.8.tar.xz
|
||||
mirror://xorg/individual/app/xmessage-1.0.7.tar.xz
|
||||
mirror://xorg/individual/app/xmore-1.0.4.tar.xz
|
||||
mirror://xorg/individual/app/xpr-1.2.0.tar.xz
|
||||
mirror://xorg/individual/app/xrandr-1.5.3.tar.xz
|
||||
mirror://xorg/individual/app/xrdb-1.2.2.tar.xz
|
||||
mirror://xorg/individual/app/xset-1.2.5.tar.xz
|
||||
mirror://xorg/individual/app/xsetroot-1.1.3.tar.xz
|
||||
|
||||
Reference in New Issue
Block a user