From 667fcd40b6d2905bdfb33d3bcf58a35bd7ce029c Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Thu, 16 Mar 2023 11:37:36 -0400 Subject: org & nix flake, mod for local dev (D related) - for local dev using newer versions of things D related --- org/config_nix.org | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) (limited to 'org/config_nix.org') 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 = "<>"; 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 = "<>"; +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 +<> +#+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 -- cgit v1.2.3