Initial commit

This commit is contained in:
ktkk 2026-10-20 10:12:45 +00:00
commit f222bb92af
9 changed files with 359 additions and 0 deletions

35
flake.nix Normal file
View file

@ -0,0 +1,35 @@
{
description = "Mini Obj-C";
inputs = {
nixpkgs.url = "nixpkgs";
systems.url = "github:nix-systems/x86_64-linux";
flake-utils = {
url = "github:numtide/flake-utils";
inputs.systems.follows = "systems";
};
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
pname = "mini-obj-c";
version = "0.0.1";
src = ./.;
buildInputs = with pkgs; [ ];
nativeBuildInputs = with pkgs; [
ninja
cmake
clang-tools
];
in {
devShells.default = pkgs.mkShell {
inherit buildInputs nativeBuildInputs;
};
packages.default = pkgs.stdenv.mkDerivation {
inherit buildInputs nativeBuildInputs pname version src;
};
});
}