aboutsummaryrefslogtreecommitdiffhomepage
path: root/sundry/spine_search_cgi/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'sundry/spine_search_cgi/flake.nix')
-rw-r--r--sundry/spine_search_cgi/flake.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/sundry/spine_search_cgi/flake.nix b/sundry/spine_search_cgi/flake.nix
new file mode 100644
index 0000000..fe54c94
--- /dev/null
+++ b/sundry/spine_search_cgi/flake.nix
@@ -0,0 +1,22 @@
+{
+ description = "a sisu like document parser search form";
+ inputs = {
+ flake-utils.url = "github:numtide/flake-utils";
+ nixpkgs.url = "github:nixos/nixpkgs";
+ };
+ outputs = { self, nixpkgs, flake-utils }:
+ let
+ pkgs = nixpkgs.legacyPackages.x86_64-linux;
+ in {
+ packages.x86_64-linux.spine = pkgs.stdenv.mkDerivation {
+ name = "spine_search";
+ inherit self;
+ src = self;
+ shell = ./shell.nix;
+ installPhase = ''
+ install -m755 -D spine_search $out/share/cgi-bin/spine_search
+ '';
+ };
+ defaultPackage.x86_64-linux = self.packages.x86_64-linux.spine;
+ };
+}