-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdefault.nix
44 lines (39 loc) · 1.07 KB
/
default.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
{ pkgs ? import <nixpkgs> {},
pkgsx86_64Linux ? import <nixpkgs> { system = "x86_64-linux"; },
pkgsi686Linux ? import <nixpkgs> { system = "i686-linux"; }
}:
# https://nixos.wiki/wiki/Packaging/32bit_Applications
#pkgs.mkShell {
#pkgs.stdenv.mkDerivation {
#pkgsi686Linux.stdenv.mkDerivation {
#pkgs.clangMultiStdenv.mkDerivation {
pkgs.multiStdenv.mkDerivation {
name = "maru";
buildInputs = with pkgs;
[
coreutils time ncurses posix_man_pages bash-completion less
#lorri direnv
gitFull diffutils
gnumake
libffi.dev
gdb binutils
llvm_11 clang_11
#clang
#clang_multi
#clang_multi.out
#pkgsi686Linux.libgcc.out
#pkgsi686Linux.clang.out
#gcc
#glibc_multi.out
# keep this line if you use bash
bashInteractive
];
buildCommand = ''
make test-bootstrap
'';
shellHook = ''
alias beep='(${pkgs.pulseaudio.out}/bin/paplay ${pkgs.gnome3.gnome-control-center.out}/share/sounds/gnome/default/alerts/glass.ogg &)'
alias ..='cd ..'
alias ...='cd ../..'
'';
}