From f842299086398f39cfa5fe90eb0aedadea04be0e Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 21 Feb 2023 19:08:16 -0500 Subject: nix flake & build, temp. remove gdc --- devenv.nix | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) mode change 100755 => 100644 devenv.nix (limited to 'devenv.nix') diff --git a/devenv.nix b/devenv.nix old mode 100755 new mode 100644 index 98a02b5..02cca28 --- a/devenv.nix +++ b/devenv.nix @@ -1,43 +1,42 @@ -{ pkgs ? import { }, name ? "user-env" }: with pkgs; +{ 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-tree jq nix-output-monitor + nix-output-monitor + nix-tree + jq git + gnumake ps - ### d_build_related + # ❯❯❯ d_build_related + # ❯❯ package manager dub - ## compiler + # ❯❯ compiler dmd ldc - #gdc - #rund - ## linker - #lld - #mold - ## builder - #ninja - #meson - ### sqlite search related + # ❯❯❯ 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 + #cd || exit 1 nix flake update nix profile upgrade '.*' '') # puts in your root the nixpkgs version - (writeTextFile { + (writeTextFile { name = "nixpkgs-version"; destination = "/nixpkgs-version"; text = lib.version; - }) + }) ]; } -- cgit v1.2.3