Use flake-parts packages

This commit is contained in:
Martin Pander
2026-02-23 21:52:19 +01:00
parent 395a70b759
commit 1db0724fe0
3 changed files with 8 additions and 9 deletions

View File

@@ -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 = ./.;

View File

@@ -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

View File

@@ -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 = ''