diff options
Diffstat (limited to 'org/config_nix.org')
-rw-r--r-- | org/config_nix.org | 44 |
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 - |