From 04444d0be1fce11b8760b7855c58e74b0ee61b39 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Thu, 20 Apr 2023 19:29:25 -0400 Subject: nix, run nix code formatter alejandra --- devenv.nix | 86 ++++++++++++++++++++++++++++++++------------------------------ 1 file changed, 45 insertions(+), 41 deletions(-) (limited to 'devenv.nix') diff --git a/devenv.nix b/devenv.nix index 02cca28..8228711 100644 --- a/devenv.nix +++ b/devenv.nix @@ -1,42 +1,46 @@ -{ pkgs ? import { }, name ? "user-env" }: +{ + pkgs ? import {}, + 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 || 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 + alejandra + 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 || 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; + }) + ]; + } -- cgit v1.2.3