aboutsummaryrefslogtreecommitdiffhomepage
path: root/flake.nix
blob: aa8bf39661cb0518a568efdab85dd9803886b2f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
  description = "a sisu like document parser";
  inputs = {
    flake-utils.url = "github:numtide/flake-utils";
    nixpkgs.url = "/nixpkgs-ra/nixpkgs";
    dub2nix-src = {
      url = "github:lionello/dub2nix";
      flake  = false;
    };
  };
  outputs = { self, dub2nix-src, nixpkgs, flake-utils }:
  let
    pkgs = nixpkgs.legacyPackages.x86_64-linux;
  in {
    packages.x86_64-linux.spine = pkgs.stdenv.mkDerivation {
      name = "spine";
      inherit self;
      src = self;
      shell = ./shell.nix;
      installPhase = ''
         install -m755 spine $out/bin/spine
      '';
    };
    defaultPackage.x86_64-linux = self.packages.x86_64-linux.spine;
  };
}