Skip to content

Commit

Permalink
ci: use new flake-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed Aug 10, 2023
1 parent 9a48952 commit c9edddf
Show file tree
Hide file tree
Showing 2 changed files with 120 additions and 31 deletions.
101 changes: 86 additions & 15 deletions flake.lock

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

50 changes: 34 additions & 16 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,44 @@

inputs = {
nixpkgs = {
url = "github:nixos/nixpkgs/nixpkgs-unstable";
url = "github:NixOS/nixpkgs/nixos-unstable";
};

utils = {
url = "github:numtide/flake-utils";
devshell = {
url = "github:numtide/devshell";
};
};

outputs = { self, nixpkgs, utils, ... }@inputs:
utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
gnumake
go_1_19
];
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.devshell.flakeModule
];

systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];

perSystem = { config, self', inputs', pkgs, system, ... }: {
devshells = {
default = {
motd = ''
{202}🔨 Welcome to devshell{reset}
'';

commands = [

];

packages = with pkgs; [
gnumake
go
];
};
};
}
);
};
};
}

0 comments on commit c9edddf

Please sign in to comment.