Add flake
This commit is contained in:
commit
96b220ab07
45
flake.nix
Normal file
45
flake.nix
Normal file
@ -0,0 +1,45 @@
|
||||
{
|
||||
description = "Development environment for jbackup";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||
systems.url = "github:nix-systems/default";
|
||||
flake-utils = {
|
||||
url = "github:numtide/flake-utils";
|
||||
inputs.systems.follows = "systems";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, flake-utils, ... }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in with pkgs; rec {
|
||||
devShell = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
bashInteractive
|
||||
yarn
|
||||
git
|
||||
go_1_23
|
||||
go-task
|
||||
gopls
|
||||
golangci-lint
|
||||
golangci-lint-langserver
|
||||
nodejs
|
||||
tmux
|
||||
typescript
|
||||
nodePackages.typescript-language-server
|
||||
nodePackages.eslint
|
||||
];
|
||||
};
|
||||
|
||||
packages.manager = buildGo123Module {
|
||||
name = "jbackup-manager";
|
||||
src = lib.cleanSource ./.;
|
||||
vendorHash = "sha256-SerSzcNfqGTzsygj44WSp5eKSoKiGDvyTDvBDzxX0r4=";
|
||||
};
|
||||
|
||||
defaultPackage = packages.manager;
|
||||
}
|
||||
);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user