diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2023-03-16 11:37:36 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2023-03-16 11:37:40 -0400 |
commit | 667fcd40b6d2905bdfb33d3bcf58a35bd7ce029c (patch) | |
tree | 300b12130c0c4455f37934b7f0145e22368625dd /org/config_nix.org | |
parent | nix flake & build, temp. remove gdc (diff) |
org & nix flake, mod for local dev (D related)
- for local dev using newer versions of things D
related
Diffstat (limited to 'org/config_nix.org')
-rw-r--r-- | org/config_nix.org | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/org/config_nix.org b/org/config_nix.org index 9c68f88..b01a5e5 100644 --- a/org/config_nix.org +++ b/org/config_nix.org @@ -88,7 +88,7 @@ export SpineSQLdb='spine.search.db' #+BEGIN_SRC nix { description = "a sisu like parser & document generator"; - 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 = "<<nixpkgs_url>>"; inputs.flake-utils.url = "github:numtide/flake-utils"; outputs = { self, nixpkgs, flake-utils } @inputs: let @@ -330,6 +330,16 @@ export SpineSQLdb='spine.search.db' } #+END_SRC +#+BEGIN_SRC nix +pname = "spine"; +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" ]; +forAllSystems = nixpkgs.lib.genAttrs supportedSystems; +nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; }); # nixpkgs instantiated for supported system types. +#+END_SRC + *** flake :flake: **** notes? @@ -1065,6 +1075,28 @@ git #+END_SRC ** variables +*** nixpkgs path +**** selected + +#+NAME: nixpkgs_url +#+BEGIN_SRC sh +<<nixpkgs_url_github>> +#+END_SRC + +**** github official + +#+NAME: nixpkgs_url_github +#+BEGIN_SRC sh +github:NixOS/nixpkgs/nixpkgs-unstable +#+END_SRC + +**** localhost + +#+NAME: nixpkgs_url_local +#+BEGIN_SRC sh +/srv/nix/nixpkgs +#+END_SRC + *** spine version SET VERSION :version:set:project: #+NAME: spine_version_set |