Last active
December 7, 2022 07:28
-
-
Save r17x/0d1c16d65b88697b6b1567848e27ad04 to your computer and use it in GitHub Desktop.
Nix Shell - Dcc Stream https://www.youtube.com/watch?v=fnQxtJjEkFk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ini membutuhkan direnv | |
# maka install juga direnv | |
# agar .envrc dapat dijalankan | |
# isi dari .envrc adalah | |
use nix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# kamu perlu install nix package manager disini | |
# https://nixos.org/download.html | |
{ pkgs ? import <nixpkgs> { } }: | |
# menjalankan fungsi make shell mkShell | |
pkgs.mkShell { | |
name = "belajar-nix-shell"; | |
buildInputs = [ | |
pkgs.nodejs | |
pkgs.go | |
pkgs.rustc | |
]; | |
shellHook = '' | |
# menulis shellscript | |
echo "Selamat datang di nix shell - belajar-nix-shell" | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment