smb_from_ass/flake.nix
2026-05-23 14:58:42 +02:00

53 lines
1.4 KiB
Nix

{
description = "A basic Bun project template for JavaScript/TypeScript development.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
nesrx = {
url = "git+https://dario48.site/git/Dario48/nesrx-flake.git";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-parts.follows = "flake-parts";
};
};
};
outputs =
inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
imports = [ ];
systems = builtins.attrNames inputs.nixpkgs.legacyPackages;
perSystem =
{
config,
system,
pkgs,
self',
...
}:
{
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
overlays = [
inputs.nesrx.overlays.default
];
};
devShells.default = pkgs.mkShellNoCC {
inputsFrom = [ self'.packages.default ];
packages = with pkgs; [ nesrx ];
};
packages.default = pkgs.stdenvNoCC.mkDerivation {
name = "smbOneOne";
src = ./.;
dontInstall = true;
nativeBuildInputs = with pkgs; [ cc65 ];
};
packages.debug = config.packages.default.overrideAttrs (_: {
buildStep = "make debug";
});
};
};
}