ablego/flake.nix

27 lines
698 B
Nix
Raw Normal View History

2022-12-16 13:31:39 +00:00
{
description = "A very basic flake";
inputs.melt.url = "sourcehut:~remexre/melt.nix";
outputs = { self, nixpkgs, flake-utils, melt }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ (final: prev: melt.packages.${system}) ];
};
flakePkgs = rec {
ablego = pkgs.callPackage ./. {
inherit (melt.legacyPackages.${system}) mkSilverBin;
};
};
in rec {
defaultPackage = packages.ablego;
packages = flake-utils.lib.flattenTree flakePkgs;
devShell = pkgs.mkShell { inputsFrom = with packages; [ ablego ]; };
});
}