Files
gitpear/flake.nix
Godefroid Chapelle 3cb2234cd4 add aarch64-darwin
2023-10-07 17:20:11 +02:00

39 lines
1.0 KiB
Nix

{
description = "pear to pear git transport";
inputs = {
dream2nix.url = "github:nix-community/dream2nix/legacy";
nixpkgs.follows = "dream2nix/nixpkgs";
};
outputs =
inputs @ { self
, dream2nix
, nixpkgs
, ...
}:
dream2nix.lib.makeFlakeOutputs {
systems = [ "x86_64-darwin" "x86_64-linux" "aarch64-darwin" ];
config.projectRoot = ./.;
source = ./.;
projects = ./projects.toml;
settings = [
# for all impure nodejs projects with just a `package.json`,
# add arguments for the `package-json` translator
{
filter = project: project.translator == "package-json";
subsystemInfo.npmArgs = "--legacy-peer-deps";
subsystemInfo.nodejs = 18;
}
];
};
#packages.${system} = dream2nix.lib.importPackages {
# projectRoot = ./.;
# can be changed to ".git" or "flake.nix" to get rid of .project-root
# projectRootFile = "flake.nix";
# packagesDir = ./def;
# packageSets.nixpkgs = nixpkgs.legacyPackages.${system};
#};
}