35 lines
879 B
Nix
35 lines
879 B
Nix
{
|
|
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;
|
|
};
|
|
});
|
|
}
|