[nix] add devShell

This commit is contained in:
2023-10-30 20:00:43 +01:00
parent 5af4c963ea
commit 20120785bd
2 changed files with 12 additions and 3 deletions

View File

@@ -7,8 +7,17 @@
outputs = { self, nixpkgs, ... }:
let
forAllSystems = nixpkgs.lib.genAttrs [ "x86_64-linux" ];
pkgs = nixpkgs.legacyPackages."x86_64-linux";
in
{
devShell."x86_64-linux" = pkgs.mkShell {
packages = with pkgs; [
go
gotools
mdbook
];
};
packages.x86_64-linux.gokill = nixpkgs.legacyPackages.x86_64-linux.buildGoModule rec {
pname = "gokill";
version = "1.0";