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 455a472 commit 0b2017e
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 0b2017e

Please sign in to comment.