Use flake-parts packages
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
perSystem = { config, self', inputs', pkgs, system, ... }: {
|
||||
packages.default = pkgs.stdenv.mkDerivation {
|
||||
pname = "my-cpp-app";
|
||||
pname = "my-app";
|
||||
version = "0.1.0";
|
||||
src = ./.;
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
|
||||
|
||||
perSystem = { config, self', inputs', pkgs, system, ... }: {
|
||||
packages.my-app = pkgs.buildGoModule {
|
||||
pname = "My App";
|
||||
packages.default = pkgs.buildGoModule {
|
||||
pname = "my-app";
|
||||
version = "0.1.0";
|
||||
src = ./.;
|
||||
|
||||
@@ -34,10 +34,9 @@
|
||||
|
||||
# Development shell
|
||||
devShells.default = pkgs.mkShell {
|
||||
inputsFrom = [ self'.packages.default ];
|
||||
|
||||
inputsFrom = [ self'.packages.my-app ];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
packages = with pkgs; [
|
||||
go_1_25
|
||||
gotools
|
||||
golangci-lint
|
||||
|
||||
@@ -35,9 +35,9 @@
|
||||
devShells.default = pkgs.mkShell {
|
||||
inputsFrom = [ self'.packages.default ];
|
||||
|
||||
packages = [
|
||||
pkgs.ruff # Linter/Formatter
|
||||
pkgs.pyright # Type checker (replaced 'ty')
|
||||
packages = with pkgs; [
|
||||
ruff # Linter/Formatter
|
||||
ty # Type checker
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
|
||||
Reference in New Issue
Block a user