Files
Hephaestus/flake.nix
2025-01-14 12:56:18 -06:00

35 lines
772 B
Nix

{
description = "Build Project Hephaestos";
inputs = {
nixpkgs.url = "git+ssh://gitea@gitea.blunkall.us/Blunkall-Technologies/nixpkgs?ref=nixos-24.11";
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in {
packages.${system}.default = pkgs.stdenv.mkDerivation {
name = "Hephaestus";
src = ./src;
buildInputs = with pkgs; [
gcc
];
buildPhase = ''
${pkgs.gcc}/bin/g++ hephaestus.cpp -o $name
'';
installPhase = ''
mkdir -p $out/bin
cp $name $out/bin
'';
};
};
}