Created
July 28, 2023 14:14
-
-
Save ethnt/942552ace6426dab48fcf813af6c00f2 to your computer and use it in GitHub Desktop.
devenv bug
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
{ | |
description = "Description for the project"; | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | |
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, ... }: | |
flake-parts.lib.mkFlake { inherit inputs; } { | |
imports = [ inputs.devenv.flakeModule ]; | |
systems = [ "x86_64-linux" "x86_64-darwin" ]; | |
perSystem = { config, self', inputs', pkgs, system, ... }: { | |
packages.default = pkgs.hello; | |
devenv.shells.default = { | |
name = "my-project"; | |
imports = [ ]; | |
packages = [ config.packages.default ]; | |
}; | |
}; | |
flake = { }; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment