forked from benruijl/symbolica
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
2,491 additions
and
399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
Cargo.lock | ||
target/ | ||
flake.lock | ||
flake.nix | ||
#flake.lock | ||
#flake.nix | ||
.envrc | ||
.direnv/ | ||
.direnv/# Devenv | ||
.devenv* | ||
devenv.local.nix | ||
|
||
# direnv | ||
.direnv | ||
|
||
# pre-commit | ||
.pre-commit-config.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
{ | ||
description = "Description for the project"; | ||
|
||
inputs = { | ||
devenv-root = { | ||
url = "file+file:///dev/null"; | ||
flake = false; | ||
}; | ||
flake-parts.url = "github:hercules-ci/flake-parts"; | ||
nixpkgs.url = "github:cachix/devenv-nixpkgs/rolling"; | ||
devenv.url = "github:cachix/devenv"; | ||
nix2container.url = "github:nlewo/nix2container"; | ||
nix2container.inputs.nixpkgs.follows = "nixpkgs"; | ||
mk-shell-bin.url = "github:rrbutani/nix-mk-shell-bin"; | ||
}; | ||
|
||
nixConfig = { | ||
extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="; | ||
extra-substituters = "https://devenv.cachix.org"; | ||
}; | ||
|
||
outputs = inputs@{ flake-parts, devenv-root, ... }: | ||
flake-parts.lib.mkFlake { inherit inputs; } { | ||
imports = [ | ||
inputs.devenv.flakeModule | ||
]; | ||
systems = [ "x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ]; | ||
|
||
perSystem = { config, self', inputs', pkgs, system, ... }: { | ||
# Per-system attributes can be defined here. The self' and inputs' | ||
# module parameters provide easy access to attributes of the same | ||
# system. | ||
|
||
# Equivalent to inputs'.nixpkgs.legacyPackages.hello; | ||
packages.default = pkgs.hello; | ||
|
||
devenv.shells.default = { | ||
devenv.root = | ||
let | ||
devenvRootFileContent = builtins.readFile devenv-root.outPath; | ||
in | ||
pkgs.lib.mkIf (devenvRootFileContent != "") devenvRootFileContent; | ||
|
||
name = "my-project"; | ||
|
||
imports = [ | ||
# This is just like the imports in devenv.nix. | ||
# See https://devenv.sh/guides/using-with-flake-parts/#import-a-devenv-module | ||
# ./devenv-foo.nix | ||
]; | ||
|
||
# https://devenv.sh/reference/options/ | ||
# packages = [ config.packages.default ]; | ||
|
||
|
||
packages = [config.packages.default | ||
pkgs.gnum4 | ||
pkgs.gmp | ||
pkgs.mpfr | ||
pkgs.gnumake | ||
pkgs.diffutils | ||
pkgs.glibc | ||
]; | ||
|
||
languages.rust.enable = true; | ||
languages.cplusplus.enable = true; | ||
|
||
|
||
processes.hello.exec = "hello"; | ||
}; | ||
|
||
}; | ||
flake = { | ||
# The usual flake attributes can be defined here, including system- | ||
# agnostic ones like nixosModule and system-enumerating ones, although | ||
# those are more easily expressed in perSystem. | ||
|
||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.