summaryrefslogtreecommitdiffhomepage
path: root/org/config_nix.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/config_nix.org')
-rw-r--r--org/config_nix.org44
1 files changed, 24 insertions, 20 deletions
diff --git a/org/config_nix.org b/org/config_nix.org
index 17427cf..fbec722 100644
--- a/org/config_nix.org
+++ b/org/config_nix.org
@@ -18,29 +18,33 @@
* nix :nix:
** flake.nix :flake:
+# "github:nixos/nixpkgs"; "github:NixOS/nixpkgs/nixpkgs-unstable"; "nixpkgs/nixos-unstable"; "nixpkgs/nixos-21.11";
+# [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
+# [ dub dmd ]; [ dub ldc ]; [ dub gdc ];
+
#+HEADER: :tangle ../flake.nix
#+HEADER: :noweb yes
#+BEGIN_SRC nix
{
description = "a sisu like document parser search form";
- inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; # "github:nixos/nixpkgs"; "github:NixOS/nixpkgs/nixpkgs-unstable"; "nixpkgs/nixos-unstable"; "nixpkgs/nixos-21.11";
+ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
- #inputs.d-overlay = {
- # url = "git+file:///home/ralph/grotto/repo/git.repo/projects/doc-reform/packages/nix-flakes/dlang/dlang-nix-flakes";
- # inputs.nixpkgs.follows = "nixpkgs";
- # flake = true;
- #};
+ inputs.d-overlay = {
+ url = "git+file:///home/ralph/grotto/repo/git.repo/projects/doc-reform/packages/nix-flakes/dlang/dlang-nix-flakes";
+ inputs.nixpkgs.follows = "nixpkgs";
+ flake = true;
+ };
outputs = {
self,
nixpkgs,
flake-utils,
- #d-overlay,
+ d-overlay,
} @ inputs: let
pname = "spine_search";
version = "<<spine_version_set>>";
- shell = ./shell.nix; # ./default.nix;
- devEnv = ./.envrc; # ./shell.nix; # ./default.nix;
- supportedSystems = ["x86_64-linux"]; # [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
+ shell = ./shell.nix;
+ devEnv = ./.envrc;
+ supportedSystems = ["x86_64-linux"];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
nixpkgsFor = forAllSystems (system: import nixpkgs {inherit system;}); # nixpkgs instantiated for supported system types
checkPhase = ''
@@ -51,8 +55,8 @@
localOverlay = (final: prev: {
ldc = prev.callPackage ./nix-overlays/ldc { };
dmd = prev.callPackage ./nix-overlays/dmd { };
- dub = prev.callPackage ./nix-overlays/dub { }; # -> ?
- #gdc = prev.callPackage ./nix-overlays/gdc { }; # empty
+ dub = prev.callPackage ./nix-overlays/dub { };
+ #gdc = prev.callPackage ./nix-overlays/gdc { }; # empty
});
pkgsForSystem = system: import nixpkgs {
overlays = [
@@ -83,7 +87,7 @@
inherit shell;
inherit devEnv;
buildInputs = [sqlite];
- nativeBuildInputs = [dub ldc gnumake]; # [ dub dmd ]; [ dub ldc ]; [ dub gdc ];
+ nativeBuildInputs = [dub ldc gnumake];
buildPhase = ''
runHook preBuild
for DC_ in dmd ldmd2 ldc2 gdc gdmd; do
@@ -192,26 +196,26 @@
name = "spine base dev shell";
inherit shell;
inherit devEnv;
+ #nativeBuildInputs = [ ldc dub gnumake ];
#buildInputs = [ sqlite ];
- #nativeBuildInputs = [ dub dmd ldc gdc gnumake ];
packages = [
sqlite
- dub
- #dmd
ldc
+ #dmd
+ dub
gnumake
];
inherit shellHook;
};
- #dsh-d-overlay = d-overlay.devShells.${system}.default;
+ dsh-d-overlay = d-overlay.devShells.${system}.default;
dsh-sqlite = mkShell {
name = "spine dev shell for latex & pdf output";
inherit shell;
inherit devEnv;
packages = [
- dub
- #dmd
ldc
+ #dmd
+ dub
gnumake
sqlite
];
@@ -221,7 +225,7 @@
name = "nixpkgs - ldc - dub";
inherit shell;
inherit devEnv;
- #nativeBuildInputs = [ dub dmd ldc gdc gnumake ];
+ #nativeBuildInputs = [ ldc dub gnumake ];
#buildInputs = [ sqlite ];
packages = with pkgs; [
ldc