mirror of
https://github.com/aljazceru/gitpear.git
synced 2025-12-17 22:24:22 +01:00
39 lines
1.0 KiB
Nix
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};
|
|
#};
|
|
}
|