pulsar-plugins/flake.nix

54 lines
1.2 KiB
Nix

{
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
forSystems = systems: f: nixpkgs.lib.genAttrs systems (system: f {
inherit system;
pkgs = nixpkgs.legacyPackages.${system};
lib = nixpkgs.legacyPackages.${system}.lib;
});
forAllSystems = forSystems [
"x86_64-linux"
"aarch64-linux"
];
in {
inherit inputs;
packages = forAllSystems ({pkgs, ...}: {
});
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
#dataset
diskcache
python-lsp-server
]))
#alejandra
nixfmt
];
NIX_PATH = "nixpkgs=${nixpkgs.outPath}";
};
});
};
}