37 lines
743 B
Nix
37 lines
743 B
Nix
{
|
|
description = "Build Project Siren";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, ... }: let
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs { inherit system; };
|
|
in {
|
|
|
|
Siren = pkgs.stdenv.mkDerivation {
|
|
|
|
name = "Siren";
|
|
|
|
src = ./src;
|
|
|
|
buildInputs = with pkgs; [
|
|
(python311.withPackages (ps: with ps; [
|
|
ollama
|
|
]))
|
|
];
|
|
|
|
buildPhase = ''
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
'';
|
|
};
|
|
|
|
packages.${system}.default = self.Siren;
|
|
};
|
|
}
|