hyprman/flake.nix

33 lines
801 B
Nix
Raw Normal View History

2024-01-25 16:20:40 -06:00
{
description = "nix + cosmograph";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
};
outputs = inputs @ {
self,
nixpkgs,
}: let
inherit (nixpkgs.lib) genAttrs;
supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"];
forAllSystems = f: genAttrs supportedSystems (system: f nixpkgs.legacyPackages.${system});
in {
devShells = forAllSystems (pkgs:{
default = pkgs.mkShell {
buildInputs = with pkgs; [
nim
nimble
];
};});
packages = forAllSystems (pkgs: {
nixgraph = pkgs.buildNimPackage {
pname = "hyprman";
version = "2023.1001";
src =./.;
};
default = self.packages.${pkgs.system}.nixgraph;
}
);
};
}