aboutsummaryrefslogtreecommitdiffhomepage
path: root/org
diff options
context:
space:
mode:
Diffstat (limited to 'org')
-rw-r--r--org/config_dub.org35
-rw-r--r--org/config_nix.org44
2 files changed, 47 insertions, 32 deletions
diff --git a/org/config_dub.org b/org/config_dub.org
index bb0091f..da65bfc 100644
--- a/org/config_dub.org
+++ b/org/config_dub.org
@@ -86,7 +86,8 @@
"authors": [ "Nicolas Sicard", "Other contributors: see Github repo" ],
"copyright": "Copyright 2011-18 Nicolas Sicard",
"license": "BSL-1.0",
- "sourcePaths": [ "./src/ext_depends/d2sqlite3/source" ],
+ "sourcePaths": [ "./src/ext_depends/d2sqlite3/source" ],
+ "importPaths": [ "./src/ext_depends/d2sqlite3/source" ],
"configurations": [
{
"name": "d2sqlite3",
@@ -103,7 +104,8 @@
"description": "Decoders for PNG, TGA, BMP, JPEG and encoders for PNG, TGA, BMP.",
"authors": [ "Tero Hänninen" ],
"license": "BSL-1.0",
- "sourcePaths": [ "./src/ext_depends/imageformats/imageformats" ]
+ "sourcePaths": [ "./src/ext_depends/imageformats" ],
+ "importPaths": [ "./src/ext_depends/imageformats" ]
},
{
"name": "dyaml",
@@ -115,12 +117,12 @@
"license": "BSL-1.0",
"homepage": "https://github.com/dlang-community/D-YAML",
"copyright": "Copyright © 2011-2018, Ferdinand Majerech",
- "sourcePaths": [
- "./src/ext_depends/D-YAML/source/dyaml",
+ "sourcePaths": [
+ "./src/ext_depends/D-YAML/source",
"./src/ext_depends/tinyendian/source"
],
- "importPaths": [
- "./src/ext_depends/D-YAML/source/dyaml",
+ "importPaths": [
+ "./src/ext_depends/D-YAML/source",
"./src/ext_depends/tinyendian/source"
],
"preGenerateCommands": [
@@ -190,7 +192,8 @@
"authors": [ "Nicolas Sicard", "Other contributors: see Github repo" ],
"copyright": "Copyright 2011-18 Nicolas Sicard",
"license": "BSL-1.0",
- "sourcePaths": [ "./src/ext_depends/d2sqlite3/source" ],
+ "sourcePaths": [ "./src/ext_depends/d2sqlite3/source" ],
+ "importPaths": [ "./src/ext_depends/d2sqlite3/source" ],
"configurations": [
{
"name": "with-lib",
@@ -206,7 +209,8 @@
"description": "Decoders for PNG, TGA, BMP, JPEG and encoders for PNG, TGA, BMP.",
"authors": [ "Tero Hänninen" ],
"license": "BSL-1.0",
- "sourcePaths": [ "./src/ext_depends/imageformats/imageformats" ]
+ "sourcePaths": [ "./src/ext_depends/imageformats" ],
+ "importPaths": [ "./src/ext_depends/imageformats" ]
},
{
"name": "dyaml",
@@ -218,9 +222,9 @@
"license": "BSL-1.0",
"homepage": "https://github.com/dlang-community/D-YAML",
"copyright": "Copyright © 2011-2018, Ferdinand Majerech",
- "sourcePaths": [ "./src/ext_depends/D-YAML/source/dyaml" ],
- "importPaths": [
- "./src/ext_depends/D-YAML/source/dyaml",
+ "sourcePaths": [ "./src/ext_depends/D-YAML/source" ],
+ "importPaths": [
+ "./src/ext_depends/D-YAML/source",
"./src/ext_depends/tinyendian/source"
],
"dependencies": {
@@ -238,7 +242,8 @@
"license": "Boost 1.0",
"copyright": "Copyright © 2014, Ferdinand Majerech",
"homepage": "https://github.com/kiith-sa/tinyendian",
- "importPaths": [ "./src/ext_depends/tinyendian/source" ]
+ "sourcePaths": [ "./src/ext_depends/tinyendian/source" ],
+ "importPaths": [ "./src/ext_depends/tinyendian/source" ]
}
],
"configurations": [
@@ -569,7 +574,8 @@ configuration "build" {
"authors": [ "Adam Ruppee" ],
"copyright": "Copyright 2011-18 Adam Ruppee",
"license": "BSL-1.0",
- "sourcePaths": [ "./src/ext_depends_cgi/arsd" ],
+ "sourcePaths": [ "./src/ext_depends_cgi/arsd" ],
+ "importPaths": [ "./src/ext_depends_cgi/arsd" ],
"configurations": [
{
"name": "cgi",
@@ -586,7 +592,8 @@ configuration "build" {
"authors": [ "Nicolas Sicard", "Other contributors: see Github repo" ],
"copyright": "Copyright 2011-18 Nicolas Sicard",
"license": "BSL-1.0",
- "sourcePaths": [ "./src/ext_depends_cgi/d2sqlite3/source" ],
+ "sourcePaths": [ "./src/ext_depends_cgi/d2sqlite3/source" ],
+ "importPaths": [ "./src/ext_depends_cgi/d2sqlite3/source" ],
"configurations": [
{
"name": "d2sqlite3",
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
-