Created
June 6, 2020 07:37
-
-
Save Abdillah/d7a169845a9f1f569dc199108dea8bb8 to your computer and use it in GitHub Desktop.
nix-shell template for desktop build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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