diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2023-04-10 14:30:43 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2023-04-10 14:30:43 -0400 |
commit | d79a579eae032fdddc8040308a037c409e7c5989 (patch) | |
tree | a3b817d65205ae1e7799a2a5642f1da34fc1db85 /devenv.nix | |
parent | org & nix flake, mod for local dev (D related) (diff) |
nix run alejandra formatter, decided to go with it
Diffstat (limited to 'devenv.nix')
-rw-r--r-- | devenv.nix | 85 |
1 files changed, 44 insertions, 41 deletions
@@ -1,42 +1,45 @@ -{ pkgs ? import <nixpkgs> { }, name ? "user-env" }: +{ + pkgs ? import <nixpkgs> {}, + name ? "user-env", +}: with pkgs; -buildEnv { - inherit name; - extraOutputsToInstall = [ "out" "man" "lib" ]; # to get all needed symlinks - paths = [ - # ❯❯❯ nix_related - #nix # if not on NixOS, this is needed - direnv - #cachix - nixVersions.unstable #nixFlakes - nix-prefetch-git - validatePkgConfig - nix-output-monitor - nix-tree - jq - git - gnumake - ps - # ❯❯❯ d_build_related - # ❯❯ package manager - dub - # ❯❯ compiler - dmd - ldc - # ❯❯❯ sqlite search related - sqlite - # this will create a script that will rebuild and upgrade your setup; using shell script syntax - (writeScriptBin "nix-rebuild" '' - #!${stdenv.shell} - #cd <path-to-flake> || exit 1 - nix flake update - nix profile upgrade '.*' - '') - # puts in your root the nixpkgs version - (writeTextFile { - name = "nixpkgs-version"; - destination = "/nixpkgs-version"; - text = lib.version; - }) - ]; -} + buildEnv { + inherit name; + extraOutputsToInstall = ["out" "man" "lib"]; # to get all needed symlinks + paths = [ + # ❯❯❯ nix_related + #nix # if not on NixOS, this is needed + direnv + #cachix + nixVersions.unstable #nixFlakes + nix-prefetch-git + validatePkgConfig + nix-output-monitor + nix-tree + jq + git + gnumake + ps + # ❯❯❯ d_build_related + # ❯❯ package manager + dub + # ❯❯ compiler + dmd + ldc + # ❯❯❯ sqlite search related + sqlite + # this will create a script that will rebuild and upgrade your setup; using shell script syntax + (writeScriptBin "nix-rebuild" '' + #!${stdenv.shell} + #cd <path-to-flake> || exit 1 + nix flake update + nix profile upgrade '.*' + '') + # puts in your root the nixpkgs version + (writeTextFile { + name = "nixpkgs-version"; + destination = "/nixpkgs-version"; + text = lib.version; + }) + ]; + } |