Skip to content

Commit

Permalink
Adding flake
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbor committed Sep 3, 2024
1 parent e42ccba commit 7d03838
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 0 deletions.
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
description = "Simple REPL shell for untyped lambda expressions.";
inputs = {
nixpkgs.url = "nixpkgs";
cf.url = "github:jzbor/cornflakes";
cf.inputs.nixpkgs.follows = "nixpkgs";
crane.url = "github:ipetkov/crane";
};

outputs = { nixpkgs, cf, crane, ... }:
cf.lib.flakeForDefaultSystems (system:
with builtins;
let
pkgs = nixpkgs.legacyPackages.${system};
craneLib = crane.mkLib pkgs;
nativeBuildInputs = with pkgs; [
clang
];
in {
### PACKAGES ###
packages = {
default = craneLib.buildPackage {
pname = "foliot";

src = ./.;

# Add extra inputs here or any other derivation settings
# doCheck = true;
inherit nativeBuildInputs;
};
};
}) // {
nixConfig = {
extra-substituters = [ "https://cache.jzbor.de/public" ];
extra-trusted-public-keys = [ "public:AdkE6qSLmWKFX4AptLFl+n+RTPIo1lrBhT2sPgfg5s4=" ];
};
};
}

0 comments on commit 7d03838

Please # to comment.