Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Forked from Hodapp87/shell.nix
Last active April 21, 2017 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleverca22/6dd013d16ab9b7f8938fff514fd84a65 to your computer and use it in GitHub Desktop.
Save cleverca22/6dd013d16ab9b7f8938fff514fd84a65 to your computer and use it in GitHub Desktop.
darktable shell.nix draft
{ pkgs ? import <nixpkgs> {} }:
# Based on nixpkgs/pkgs/applications/graphics/darktable/default.nix
let stdenv = pkgs.stdenv;
#assert stdenv ? glibc;
in stdenv.mkDerivation rec {
name = "darktable-git";
src = pkgs.lib.cleanSource ./.;
buildInputs = with pkgs; with xorg; with gnome2;
[ GConf atk cairo cmake curl dbus_glib exiv2 glib libgnome_keyring gtk3
ilmbase intltool lcms lcms2 lensfun libXau libXdmcp libexif
libglade libgphoto2 libjpeg libpng libpthreadstubs
librsvg libtiff libxcb openexr pixman pkgconfig sqlite libxslt
libsoup graphicsmagick SDL json_glib openjpeg mesa lua pugixml
colord colord-gtk libxshmfence libxkbcommon epoxy at_spi2_core
libwebp libsecret wrapGAppsHook gnome3.adwaita-icon-theme
osm-gps-map
];
cmakeFlags = [
"-DBUILD_USERMANUAL=False"
];
# darktable changed its rpath handling in commit
# 83c70b876af6484506901e6b381304ae0d073d3c and as a result the
# binaries can't find libdarktable.so, so change LD_LIBRARY_PATH in
# the wrappers:
preFixup = ''
gappsWrapperArgs+=(
--prefix LD_LIBRARY_PATH ":" "$out/lib/darktable"
)
'';
meta = with stdenv.lib; {
description = "Virtual lighttable and darkroom for photographers";
homepage = https://www.darktable.org;
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = [ maintainers.goibhniu maintainers.rickynils maintainers.flosse ];
};
}
(import ./default.nix {}).overrideDerivation (old: { src = null; })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment