xsetroot: refactor and move to pkgs/by-name from xorg namespace
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
xorgproto,
|
||||
xbitmaps,
|
||||
libx11,
|
||||
libxcursor,
|
||||
libxmu,
|
||||
writeScript,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xsetroot";
|
||||
version = "1.1.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/xsetroot-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-YIG0Wp60Qm4EXSWdHhRLMkF/tjXluWqpBkc2WslmONE=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
xorgproto
|
||||
xbitmaps
|
||||
libx11
|
||||
libxcursor
|
||||
libxmu
|
||||
];
|
||||
|
||||
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 = "Root window parameter setting utility for X";
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/app/xsetroot";
|
||||
license = lib.licenses.mitOpenGroup;
|
||||
mainProgram = "xsetroot";
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
@@ -83,6 +83,7 @@
|
||||
xrandr,
|
||||
xrefresh,
|
||||
xset,
|
||||
xsetroot,
|
||||
xtrans,
|
||||
xvinfo,
|
||||
xwininfo,
|
||||
@@ -128,6 +129,7 @@ self: with self; {
|
||||
xrandr
|
||||
xrefresh
|
||||
xset
|
||||
xsetroot
|
||||
xtrans
|
||||
xvinfo
|
||||
xwininfo
|
||||
@@ -5434,48 +5436,6 @@ self: with self; {
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xsetroot = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
libX11,
|
||||
xbitmaps,
|
||||
libXcursor,
|
||||
libXmu,
|
||||
xorgproto,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xsetroot";
|
||||
version = "1.1.3";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/xsetroot-1.1.3.tar.xz";
|
||||
sha256 = "1l9qcv4mldj70slnmfg56nv7yh9j9ca1x795bl26whmlkrdb90b0";
|
||||
};
|
||||
hardeningDisable = [
|
||||
"bindnow"
|
||||
"relro"
|
||||
];
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
libX11
|
||||
xbitmaps
|
||||
libXcursor
|
||||
libXmu
|
||||
xorgproto
|
||||
];
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
meta = {
|
||||
pkgConfigModules = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xsm = callPackage (
|
||||
{
|
||||
|
||||
@@ -399,6 +399,7 @@ print OUT <<EOF;
|
||||
xrandr,
|
||||
xrefresh,
|
||||
xset,
|
||||
xsetroot,
|
||||
xtrans,
|
||||
xvinfo,
|
||||
xwininfo,
|
||||
@@ -444,6 +445,7 @@ self: with self; {
|
||||
xrandr
|
||||
xrefresh
|
||||
xset
|
||||
xsetroot
|
||||
xtrans
|
||||
xvinfo
|
||||
xwininfo
|
||||
|
||||
@@ -982,7 +982,6 @@ self: super:
|
||||
};
|
||||
});
|
||||
|
||||
xsetroot = addMainProgram super.xsetroot { };
|
||||
xsm = addMainProgram super.xsm { };
|
||||
xstdcmap = addMainProgram super.xstdcmap { };
|
||||
xwd = addMainProgram super.xwd { };
|
||||
|
||||
@@ -33,7 +33,6 @@ 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/xrdb-1.2.2.tar.xz
|
||||
mirror://xorg/individual/app/xsetroot-1.1.3.tar.xz
|
||||
mirror://xorg/individual/app/xsm-1.0.6.tar.xz
|
||||
mirror://xorg/individual/app/xstdcmap-1.0.5.tar.xz
|
||||
mirror://xorg/individual/app/xtrap-1.0.3.tar.bz2
|
||||
|
||||
Reference in New Issue
Block a user