2023-07-02 23:35:40 +02:00
|
|
|
{
|
|
|
|
description = "Pulsar Editor packages";
|
|
|
|
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/210814
|
|
|
|
inputs.nixpkgs.url = "github:winterqt/nixpkgs/build-yarn-package";
|
|
|
|
|
|
|
|
# TODO: consider https://github.com/serokell/nix-npm-buildpackage
|
|
|
|
|
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
... } @ inputs:
|
|
|
|
let
|
2023-10-03 19:01:10 +02:00
|
|
|
forSystems = systems: f: nixpkgs.lib.genAttrs systems (system: f {
|
2023-07-02 23:35:40 +02:00
|
|
|
inherit system;
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
lib = nixpkgs.legacyPackages.${system}.lib;
|
|
|
|
});
|
2023-10-03 19:01:10 +02:00
|
|
|
forAllSystems = forSystems [
|
|
|
|
"x86_64-linux"
|
|
|
|
"aarch64-linux"
|
|
|
|
];
|
2023-07-02 23:35:40 +02:00
|
|
|
in {
|
|
|
|
inherit inputs;
|
2023-10-03 19:01:10 +02:00
|
|
|
packages = forAllSystems ({pkgs, ...}: {
|
|
|
|
|
|
|
|
});
|
2023-07-02 23:35:40 +02:00
|
|
|
devShells = forAllSystems ({pkgs, ...}: {
|
|
|
|
default = pkgs.mkShell {
|
|
|
|
packages = with pkgs; [
|
|
|
|
nurl
|
|
|
|
prefetch-npm-deps
|
|
|
|
prefetch-yarn-deps
|
|
|
|
nodejs
|
|
|
|
#nix-prefetch
|
|
|
|
|
|
|
|
(python3.withPackages (ps: with ps; [
|
|
|
|
httpx
|
|
|
|
rich
|
|
|
|
typer
|
2023-10-03 19:01:10 +02:00
|
|
|
#dataset
|
|
|
|
diskcache
|
2023-07-02 23:35:40 +02:00
|
|
|
python-lsp-server
|
|
|
|
]))
|
|
|
|
|
|
|
|
#alejandra
|
|
|
|
nixfmt
|
|
|
|
];
|
|
|
|
NIX_PATH = "nixpkgs=${nixpkgs.outPath}";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|