├── nix-shells ├── rust.nix ├── python2.nix ├── python3.nix └── haskell.nix └── readme.md /nix-shells/rust.nix: -------------------------------------------------------------------------------- 1 | with import {}; 2 | stdenv.mkDerivation rec { 3 | name = "myproject"; 4 | buildInputs = [ rustc cargo ]; 5 | shellHook = '' 6 | export PS1="${name}:rust-env> " 7 | ''; 8 | } 9 | -------------------------------------------------------------------------------- /nix-shells/python2.nix: -------------------------------------------------------------------------------- 1 | with import {}; 2 | 3 | (python2.buildEnv.override { 4 | extraLibs = with python2Packages; 5 | [ 6 | # Used python3 packages 7 | # python3 packages can be listed with 8 | # nix-env -f "" -qaP -A python2Packages 9 | 10 | ]; 11 | }).env 12 | -------------------------------------------------------------------------------- /nix-shells/python3.nix: -------------------------------------------------------------------------------- 1 | with import {}; 2 | 3 | (python3.buildEnv.override { 4 | extraLibs = with python3Packages; 5 | [ 6 | # Used python3 packages 7 | # python3 packages can be listed with 8 | # nix-env -f "" -qaP -A python3Packages 9 | 10 | ]; 11 | }).env 12 | -------------------------------------------------------------------------------- /nix-shells/haskell.nix: -------------------------------------------------------------------------------- 1 | { nixpkgs ? import {} }: 2 | let 3 | inherit (nixpkgs) pkgs; 4 | ghc = pkgs.haskellPackages.ghcWithPackages (ps: with ps; [ 5 | # Used ghc packages 6 | # haskell packages can be listed with 7 | # nix-env -f "" -qaP -A haskellPackages 8 | 9 | ]); 10 | in 11 | pkgs.stdenv.mkDerivation rec { 12 | name = "myproject"; 13 | buildInputs = [ ghc ]; 14 | shellHook = '' 15 | eval $(egrep ^export ${ghc}/bin/ghc) 16 | export PS1="${name}:haskell-env> " 17 | ''; 18 | } 19 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # Tokyo Nixos Meetup Wiki 2 | 3 | ## Wiki 4 | 5 | -> [Wiki](https://github.com/Tokyo-NixOS/Tokyo-NixOS-Meetup-Wiki/wiki) <- 6 | 7 | ## NixOSとは 8 | 9 | NixOSはNixパッケージマネジャーを利用ひたリナックスディストリビューション。 10 | 11 | - 宣言型設定: 一つの設定ファイルでシステムをカスタマイズできます。 12 | - 信頼できる: アトミックアップグレードとバージョンロールバックはできます。 13 | - デプロイ向け: NixOpsツールでNixOSをVirtualBoxやAmazon EC2に展開できます。 14 | 15 | ## nix-shell 16 | 17 | `nix-shell`フォルダー以下にはいろいろな言語のための`nix-shell`ファイルがあります。 18 | 19 | ## リンク 20 | 21 | - [NixOSマニュアル](https://nixos.org/nixos/manual/) 22 | - [開発者マニュアル](https://nixos.org/nixpkgs/manual/) 23 | - [nixマニュアル](http://nixos.org/nix/manual/) 24 | --------------------------------------------------------------------------------