forked from Authentura/codectrl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
35 lines (30 loc) · 783 Bytes
/
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
{
mozillaOverlay ? import (
builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz
),
pkgs ? import <nixpkgs> {
overlays = [ mozillaOverlay ];
},
rust ? (pkgs.rustChannelOf { channel = "stable"; }).rust,
rustPlatform ? pkgs.makeRustPlatform {
cargo = rust;
rustc = rust;
},
lib ? pkgs.lib
}:
pkgs.stdenv.mkDerivation rec {
name = "build-shell";
buildInputs = with pkgs; [
cmake
gtk3
pkg-config
rustPlatform.rust.cargo
rustPlatform.rust.rustc
];
shellHook = ''
nix-channel --add https://github.com/guibou/nixGL/archive/main.tar.gz nixgl && nix-channel --update
nix-env -iA nixgl.auto.nixGLDefault
alias cargo="nixGL cargo"
echo "Entered Nix-Shell environment..."
'';
}