This repository has been archived by the owner on Jul 14, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
62 lines (54 loc) · 1.95 KB
/
shell.nix
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
let
pkgs = import <nixpkgs> {};
unstable = import (fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz) {};
pkgs-2020-03-23 = import (fetchTarball https://github.com/NixOS/nixpkgs/archive/793c1b5c72abbfed2f98add0811a022fc713dbf3.tar.gz) {};
in
pkgs-2020-03-23.clangStdenv.mkDerivation rec {
pname = "giti";
fname = "com.github.linarcx.giti";
version = "1.0.0";
name = "${pname}${version}";
nativeBuildInputs = [
pkgs.pkg-config
pkgs-2020-03-23.ninja
pkgs-2020-03-23.meson
pkgs-2020-03-23.wrapGAppsHook
];
buildInputs = [
pkgs-2020-03-23.uncrustify
pkgs-2020-03-23.man
pkgs-2020-03-23.man-pages
pkgs-2020-03-23.posix_man_pages
pkgs-2020-03-23.vala
pkgs-2020-03-23.pantheon.granite
pkgs-2020-03-23.fontconfig
pkgs-2020-03-23.gtk3
pkgs-2020-03-23.pcre pkgs-2020-03-23.harfbuzz
pkgs-2020-03-23.xorg.libpthreadstubs
pkgs-2020-03-23.xorg.libXdmcp
pkgs-2020-03-23.utillinux
pkgs-2020-03-23.libselinux
pkgs-2020-03-23.libsepol
pkgs-2020-03-23.libxkbcommon
pkgs-2020-03-23.epoxy
pkgs-2020-03-23.at_spi2_core.dev
pkgs-2020-03-23.dbus
pkgs-2020-03-23.xorg.libXtst
pkgs-2020-03-23.libcanberra-gtk3
pkgs-2020-03-23.libgit2-glib
pkgs-2020-03-23.libgit2
pkgs-2020-03-23.libgee
pkgs-2020-03-23.pantheon.granite
pkgs-2020-03-23.gettext
];
FONTCONFIG_FILE = "${pkgs-2020-03-23.fontconfig.out}/etc/fonts/fonts.conf";
LOCALE_ARCHIVE = "${pkgs-2020-03-23.glibcLocales}/lib/locale/locale-archive";
shellHook = ''
export NAME=${pname}
export FULL_NAME=${fname}
export CLANG=${pkgs-2020-03-23.clang}/bin/clang
export CLANGXX=${pkgs-2020-03-23.clang}/bin/clang++
export LLDB_VSCODE=${pkgs-2020-03-23.lldb_9}/bin/lldb-vscode
export XDG_DATA_DIRS=$HOME/.nix-profile/share:/usr/local/share:/usr/share
'';
}