anchor.diff:      gnome3.gtk
       gnome2.pango
       libnotify
  +    libsecret
  +    libuuid
       libxcb
       nspr
       nss
  
positive.code: 
    buildCommand = ''
      IFS=$'\n'
      dpkg -x $src $out
      cp -av $out/usr/* $out
      rm -rf $out/share/lintian
      #The node_modules are bringing in non-linux files/dependencies
      find $out -name "*.app" -exec rm -rf {} \; || true
      find $out -name "*.dll" -delete
      find $out -name "*.exe" -delete
      # Otherwise it looks "suspicious"
      chmod -R g-w $out
      for file in `find $out -type f -perm /0111 -o -name \*.so\*`; do
        echo "Manipulating file: $file"
        patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$file" || true
        patchelf --set-rpath ${rpath}:$out/share/mongodb-compass "$file" || true
      done
      wrapGAppsHook $out/bin/mongodb-compass
    '';
  
  
negative.code: { stdenv, fetchurl, dpkg
  , alsaLib, at-spi2-atk, at-spi2-core, atk, cairo, cups, curl, dbus, expat, fontconfig, freetype, glib
  , gnome2, gnome3, libnotify, libsecret, libuuid, libxcb, nspr, nss, systemd, xorg, wrapGAppsHook }:
  
  let
    version = "1.22.1";
  
    rpath = stdenv.lib.makeLibraryPath [
      alsaLib
      at-spi2-atk
      at-spi2-core
      atk
      cairo
      cups
  