From bc5b1b8bb3d45d9c04ccc46bb8732f859e4b896c Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 29 Aug 2021 19:04:09 -0400 Subject: config nix --- sundry/spine_search_cgi/flake.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 sundry/spine_search_cgi/flake.nix (limited to 'sundry/spine_search_cgi/flake.nix') 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; + }; +} -- cgit v1.2.3