aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/config_nix.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/config_nix.org')
-rw-r--r--org/config_nix.org34
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