Skip to content

Instantly share code, notes, and snippets.

@Abdillah
Created June 6, 2020 07:37
Show Gist options
  • Save Abdillah/d7a169845a9f1f569dc199108dea8bb8 to your computer and use it in GitHub Desktop.
Save Abdillah/d7a169845a9f1f569dc199108dea8bb8 to your computer and use it in GitHub Desktop.
nix-shell template for desktop build
let
nixpkgs = import <nixpkgs-20.03> {};
self = with nixpkgs; nixpkgs.stdenv.mkDerivation rec {
name = "rustodoro-${version}-builder0";
version = "rev-4c34dd";
# Haven't upload yet, but usable for nix-shell.
nativeBuildInputs = [
pkgconfig
gobject-introspection
at-spi2-atk
atk
glib
cups
cairo
pango
gtk3
xorg.libX11
xorg.libxcb
xorg.libXcomposite
xorg.libXcursor
xorg.libXi
xorg.libXdamage
xorg.libXfixes
xorg.libXtst
xorg.libXrandr
];
buildInputs = [ ];
doCheck = false;
shellHooks = ''
for dep in $nativeBuildInputs; do
echo "Install $dep/lib"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$dep/lib
done
'';
};
in self
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment