anchor.diff:      gtk2
       ddccontrol-db
     ];
  -
  -  hardeningDisable = [ "format" "bindnow" ];
   
     prePatch = ''
       oldPath="\$""{datadir}/ddccontrol-db"
  
positive.code:     intltoolize --force
    '';
  
    postInstall = ''
      mkdir -p $out/share/applications/
      cp $desktopItem/share/applications/* $out/share/applications/
      for entry in $out/share/applications/*.desktop; do
        substituteAllInPlace $entry
      done
    '';
  
    desktopItem = makeDesktopItem {
      name = "gddccontrol";
      desktopName = "gddccontrol";
      genericName = "DDC/CI control";
      comment = meta.description;
      exec = "@out@/bin/gddccontrol";
      icon = "gddccontrol";
      categories = "Settings;HardwareSettings;";
    };
  
    meta = with lib; {
      description = "A program used to control monitor parameters by software";
      homepage = "https://github.com/ddccontrol/ddccontrol";
      license = licenses.gpl2;
      platforms = [ "i686-linux" "x86_64-linux" ];
      maintainers = [ lib.maintainers.pakhfn ];
    };
  }
  
negative.code: { lib
  , stdenv
  , fetchFromGitHub
  , autoreconfHook
  , intltool
  , libxml2
  , pciutils
  , pkg-config
  , gtk2
  , ddccontrol-db
  }:
  
  stdenv.mkDerivation rec {
    pname = "ddccontrol";
    version = "0.5.1";
  
    src = fetchFromGitHub {
      owner = "ddccontrol";
      repo = "ddccontrol";
      rev = "0.5.1";
      sha256 = "sha256-e6Rzzz5S+Um2ZBuUkfAJQA4V+zqCqsUHB0f1t/dTU2w=";
    };
  
    nativeBuildInputs = [
      autoreconfHook
      intltool
      pkg-config
    ];
  
    buildInputs = [
      libxml2
  