init devshell
This commit is contained in:
parent
277b627dc1
commit
4d8b83cbb6
4 changed files with 95 additions and 0 deletions
62
flake.nix
Normal file
62
flake.nix
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
{
|
||||
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1";
|
||||
outputs =
|
||||
{ self, nixpkgs }:
|
||||
let
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
"aarch64-darwin"
|
||||
];
|
||||
forAllSystems = fn: nixpkgs.lib.genAttrs systems (system: fn nixpkgs.legacyPackages.${system});
|
||||
in
|
||||
{
|
||||
#packages = forAllSystems (pkgs: {
|
||||
# default = pkgs.callPackage ./package.nix { };
|
||||
#});
|
||||
|
||||
#checks = forAllSystems (
|
||||
# pkgs:
|
||||
# {
|
||||
# tests = self.packages.${pkgs.stdenv.hostPlatform.system}.default.overrideAttrs (_: {
|
||||
# pname = "nix-cache-login-tests";
|
||||
# checkPhase = ''
|
||||
# runHook preCheck
|
||||
# go test ./...
|
||||
# runHook postCheck
|
||||
# '';
|
||||
# doCheck = true;
|
||||
# });
|
||||
# module-checks = import ./module-checks.nix { inherit self pkgs; };
|
||||
# devShell = self.devShells.${pkgs.stdenv.hostPlatform.system}.default;
|
||||
# }
|
||||
# // pkgs.lib.optionalAttrs pkgs.stdenv.isLinux {
|
||||
# nixos-module = pkgs.testers.runNixOSTest (import ./nixos-test.nix self);
|
||||
# nixos-module-server = pkgs.testers.runNixOSTest (import ./nixos-test-server.nix self);
|
||||
# }
|
||||
#);
|
||||
|
||||
devShells = forAllSystems (pkgs: {
|
||||
default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
go
|
||||
];
|
||||
};
|
||||
});
|
||||
|
||||
#nixosModules.default =
|
||||
# {
|
||||
# config,
|
||||
# lib,
|
||||
# pkgs,
|
||||
# ...
|
||||
# }:
|
||||
# {
|
||||
# imports = [ ./nixos-module.nix ];
|
||||
# services.prometheus.exporters.dnstt.package =
|
||||
# lib.mkDefault
|
||||
# self.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
||||
|
||||
# };
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue