summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..0a9eefc
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,41 @@
+{
+ description = "Zen-C compiler";
+
+ inputs = {
+ nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+ flake-utils.url = "github:numtide/flake-utils";
+ };
+
+ outputs =
+ {
+ self,
+ nixpkgs,
+ flake-utils,
+ }:
+ flake-utils.lib.eachDefaultSystem (
+ system:
+ let
+ pkgs = import nixpkgs { inherit system; };
+
+ lib = pkgs.lib;
+ in
+ {
+ packages.default = pkgs.stdenv.mkDerivation {
+ pname = "zen-c";
+ version = "unstable";
+
+ src = self;
+
+ env.PREFIX = placeholder "out";
+
+ meta = {
+ description = "Zen-C programming language compiler";
+ homepage = "https://github.com/z-libs/Zen-C";
+ license = lib.licenses.mit;
+ platforms = lib.platforms.unix;
+ mainProgram = "zc";
+ };
+ };
+ }
+ );
+}