aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/config_nix.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2021-10-23 19:49:43 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2021-11-27 19:51:25 -0500
commitc4f6c86999ec8fe3b610ac269a121c9fa424daf5 (patch)
tree9251611c030c29af99bfa59bda94521c3500ad94 /org/config_nix.org
parentnix .envrc related (diff)
dlang dub & nix build related, includes dep update
- nix-shell --pure - nix-build - dub build --compiler=ldc2 --build=release --force
Diffstat (limited to 'org/config_nix.org')
-rw-r--r--org/config_nix.org44
1 files changed, 26 insertions, 18 deletions
diff --git a/org/config_nix.org b/org/config_nix.org
index c5bd8dd..9763c57 100644
--- a/org/config_nix.org
+++ b/org/config_nix.org
@@ -555,14 +555,15 @@ nix flake update
#+HEADER: :shebang "#!/usr/bin/env -S nix-shell --pure"
#+BEGIN_SRC nix
{ pkgs ? import <nixpkgs> {} }:
-pkgs.mkShell {
- buildInputs = with pkgs; [
+with pkgs;
+mkShell {
+ buildInputs = [
<<shell_packages_nix_related>>
<<shell_packages_d_build_related>>
- <<shell_packages_candy>>
- # <<shell_packages_search_related_sqlite>>
+ <<shell_packages_search_related_sqlite>>
# <<shell_packages_pdf_latex_related>>
# <<shell_packages_xml_and_epub_related>>
+ <<shell_packages_candy>>
];
shellHook = ''
if [[ -e ".envrc" ]]; then
@@ -609,7 +610,6 @@ starship
#+NAME: shell_packages_search_related_sqlite
#+BEGIN_SRC nix
-# search_sqlite_related
# search related
sqlite
#+END_SRC
@@ -688,6 +688,15 @@ nix build -f spine.nix
#+HEADER: :tangle-mode (identity #o755)
#+HEADER: :shebang "#!/usr/bin/env -S nix-build"
#+BEGIN_SRC nix
+{ pkgs ? import <nixpkgs> {} }:
+pkgs.callPackage ./derivation.nix {}
+#+END_SRC
+
+*** derivation.nix :default:
+
+#+HEADER: :tangle ../derivation.nix
+#+HEADER: :tangle-mode (identity #o644)
+#+BEGIN_SRC nix
{ pkgs ? import <nixpkgs> {},
stdenv ? pkgs.stdenv,
lib ? pkgs.lib,
@@ -779,11 +788,6 @@ mkDubDerivation rec {
ldc
sqlite
];
- # buildPhase = [ ];
- installPhase = ''
- install -m755 -D spine $out/bin/spine
- echo "built $out/bin/spine"
- '';
<<nix_project_meta>>
}
#+END_SRC
@@ -1109,8 +1113,9 @@ nix flake update
#+HEADER: :shebang "#!/usr/bin/env -S nix-shell --pure"
#+BEGIN_SRC nix
{ pkgs ? import <nixpkgs> {} }:
-pkgs.mkShell {
- buildInputs = with pkgs; [
+with pkgs;
+mkShell {
+ buildInputs = [
<<shell_packages_nix_related>>
<<shell_packages_d_build_related>>
<<shell_packages_search_related_sqlite>>
@@ -1131,6 +1136,15 @@ pkgs.mkShell {
#+HEADER: :tangle-mode (identity #o755)
#+HEADER: :shebang "#!/usr/bin/env -S nix-build"
#+BEGIN_SRC nix
+{ pkgs ? import <nixpkgs> {} }:
+pkgs.callPackage ./derivation.nix {}
+#+END_SRC
+
+*** derivation.nix :derivation:
+
+#+HEADER: :tangle "../sundry/spine_search_cgi/derivation.nix"
+#+HEADER: :tangle-mode (identity #o644)
+#+BEGIN_SRC nix
{ pkgs ? import <nixpkgs> {},
stdenv ? pkgs.stdenv,
lib ? pkgs.lib,
@@ -1231,11 +1245,6 @@ mkDubDerivation rec {
]
)
];
- # # buildPhase = [ ];
- # installPhase = ''
- # install -m755 -D spine_search $out/bin/spine-search
- # echo "built $out/bin/spine-search"
- # '';
meta = with pkgs.lib; {
homepage = https://sisudoc.org;
description = "a sisu like document parser";
@@ -1429,4 +1438,3 @@ fc-query DejaVuSans.ttf | grep '^\s\+family:' | cut -d'"' -f2
$XDG_DATA_HOME/fonts
~/.local/share/fonts
#+END_SRC
-