aboutsummaryrefslogtreecommitdiffhomepage
path: root/sundry/spine_search_cgi/flake.nix
blob: fe54c947be713b382bef50b52656b7bd79b7f792 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
  };
}