xgamma: 1.0.7 -> 1.0.8, refactor & move to pkgs/by-name from xorg namespace
This commit is contained in:
committed by
Alyssa Ross
parent
3964260b23
commit
240d5045b6
@@ -0,0 +1,52 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
xorgproto,
|
||||
libx11,
|
||||
libxxf86vm,
|
||||
writeScript,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xgamma";
|
||||
version = "1.0.8";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/xgamma-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-mPn2nlOhHDVKZjfqXD12mc61xbH4rW8KFNmTHloQ0Hk=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
xorgproto
|
||||
libx11
|
||||
libxxf86vm
|
||||
];
|
||||
|
||||
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 = "Utility to query and alter the gamma correction of a X monitor";
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/app/xgamma";
|
||||
license = with lib.licenses; [
|
||||
x11
|
||||
hpndSellVariant
|
||||
];
|
||||
mainProgram = "xgamma";
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
@@ -65,6 +65,7 @@
|
||||
xdriinfo,
|
||||
xev,
|
||||
xfsinfo,
|
||||
xgamma,
|
||||
xkeyboard-config,
|
||||
xlsatoms,
|
||||
xlsclients,
|
||||
@@ -108,6 +109,7 @@ self: with self; {
|
||||
xdriinfo
|
||||
xev
|
||||
xfsinfo
|
||||
xgamma
|
||||
xlsatoms
|
||||
xlsclients
|
||||
xlsfonts
|
||||
@@ -4920,44 +4922,6 @@ self: with self; {
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xgamma = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
libX11,
|
||||
xorgproto,
|
||||
libXxf86vm,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xgamma";
|
||||
version = "1.0.7";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/xgamma-1.0.7.tar.xz";
|
||||
sha256 = "13xw2fqp9cs7xj3nqi8khqxv81rk0dd8khp59xgs2lw9bbldly8w";
|
||||
};
|
||||
hardeningDisable = [
|
||||
"bindnow"
|
||||
"relro"
|
||||
];
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
libX11
|
||||
xorgproto
|
||||
libXxf86vm
|
||||
];
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
meta = {
|
||||
pkgConfigModules = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xgc = callPackage (
|
||||
{
|
||||
|
||||
@@ -381,6 +381,7 @@ print OUT <<EOF;
|
||||
xdriinfo,
|
||||
xev,
|
||||
xfsinfo,
|
||||
xgamma,
|
||||
xkeyboard-config,
|
||||
xlsatoms,
|
||||
xlsclients,
|
||||
@@ -424,6 +425,7 @@ self: with self; {
|
||||
xdriinfo
|
||||
xev
|
||||
xfsinfo
|
||||
xgamma
|
||||
xlsatoms
|
||||
xlsclients
|
||||
xlsfonts
|
||||
|
||||
@@ -965,7 +965,6 @@ self: super:
|
||||
xfd = addMainProgram super.xfd { };
|
||||
xfontsel = addMainProgram super.xfontsel { };
|
||||
xfs = addMainProgram super.xfs { };
|
||||
xgamma = addMainProgram super.xgamma { };
|
||||
xgc = addMainProgram super.xgc { };
|
||||
xhost = addMainProgram super.xhost { };
|
||||
xinput = addMainProgram super.xinput { };
|
||||
|
||||
@@ -22,7 +22,6 @@ mirror://xorg/individual/app/xeyes-1.3.0.tar.xz
|
||||
mirror://xorg/individual/app/xfd-1.1.4.tar.xz
|
||||
mirror://xorg/individual/app/xfontsel-1.1.1.tar.xz
|
||||
mirror://xorg/individual/app/xfs-1.2.2.tar.xz
|
||||
mirror://xorg/individual/app/xgamma-1.0.7.tar.xz
|
||||
mirror://xorg/individual/app/xgc-1.0.6.tar.xz
|
||||
mirror://xorg/individual/app/xhost-1.0.10.tar.xz
|
||||
mirror://xorg/individual/app/xinit-1.4.4.tar.xz
|
||||
|
||||
Reference in New Issue
Block a user