Skip to content

Commit

Permalink
adding nix support
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonifacio committed Jul 1, 2024
1 parent 2ff147f commit 07a3248
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 0 deletions.
86 changes: 86 additions & 0 deletions flake.lock

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

23 changes: 23 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
<<<<<<< HEAD
description = "An implementation of the Oberon language in Scala";

inputs = {
Expand Down Expand Up @@ -26,4 +27,26 @@
packages.x86_64-linux.default = build_for "x86_64-linux";
packages.x86_64-darwin.default = build_for "x86_64-darwin";
};
=======
nixConfig.bash-prompt-suffix = "🌿 ";

inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
inputs.nixpkgs_old.url = "github:NixOS/nixpkgs/nixos-22.11";
inputs.nixpkgs_unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";

outputs = { self, nixpkgs, nixpkgs_old, nixpkgs_unstable, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
rec {
pkgs = nixpkgs.legacyPackages.${system};
pkgs_old = nixpkgs_old.legacyPackages.${system};
pkgs_unstable = nixpkgs_unstable.legacyPackages.${system};
devShells = {
default = import ./shell.nix { inherit pkgs pkgs_old pkgs_unstable system; };
withDebugTools = import ./shell.nix { inherit pkgs pkgs_old pkgs_unstable system; withDebugTools = true; };
withHiddenDylibs = import ./shell.nix { inherit pkgs pkgs_old pkgs_unstable system; withHiddenDylibs = true; };
};
}
);
>>>>>>> de97368 (adding nix support)
}

0 comments on commit 07a3248

Please sign in to comment.