templates/bash/nixpkgs/flake.nix

18 lines
466 B
Nix
Raw Normal View History

2024-07-28 06:01:20 -04:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
systems.url = "github:nix-systems/default";
};
outputs = { self, nixpkgs, systems, ... }:
let eachSystem = nixpkgs.lib.genAttrs (import systems);
in {
packages = eachSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
soe = pkgs.callPackage ./package.nix {};
default = self.packages.${system}.soe;
});
};
}