feat: first commit.

This commit is contained in:
didier amyot authored and didier amyot committed 2022-11-26 10:47:26 -05:00
commit fb26468175
12 files changed
+865

No files matched your search

+40
View File
@@ -0,0 +1,40 @@
{
inputs = {
naersk.url = "github:nix-community/naersk/master";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils, naersk }:
utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
naersk-lib = pkgs.callPackage naersk { };
in
{
defaultPackage = naersk-lib.buildPackage ./.;
defaultApp = utils.lib.mkApp {
drv = self.defaultPackage."${system}";
};
packages.development-environment =
with pkgs; buildEnv {
name = "IntelliJ development environment";
paths = [
# something that work.. ish
# pre-commit
# rustup
rustc cargo rustPlatform.rustcSrc gcc
];
};
devShell = with pkgs; mkShell {
buildInputs = [ cargo rustc rustfmt pre-commit rustPackages.clippy ];
RUST_SRC_PATH = rustPlatform.rustLibSrc;
};
});
}