-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
31 lines (31 loc) · 911 Bytes
/
Copy pathshell.nix
File metadata and controls
31 lines (31 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ pkgs ? import <nixpkgs> {} }:
let
openimageio2 = with pkgs ; import ./nix/openimageio2.nix { inherit pkgs; };
in pkgs.stdenvNoCC.mkDerivation {
name = "photo-view-gcc-environment";
buildInputs = [
pkgs.gcc10
pkgs.gdb
pkgs.pkg-config
pkgs.cmake
pkgs.clang-tools
openimageio2
pkgs.libraw
pkgs.openexr
pkgs.opencl-headers
pkgs.ocl-icd
pkgs.qt5.qtbase
pkgs.boost172
pkgs.gbenchmark
pkgs.flatpak-builder
pkgs.linuxPackages.perf
];
shellHook = ''
export QT_PLUGIN_PATH=${pkgs.qt5.qtbase.bin}/${pkgs.qt5.qtbase.qtPluginPrefix}
alias clean="rm -rf build"
alias config="cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=RelWithDebInfo"
alias configDebug="cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Debug"
alias configRelease="cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release"
alias build="cmake --build build"
'';
}