27 lines
698 B
Nix
27 lines
698 B
Nix
|
{
|
||
|
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 ]; };
|
||
|
});
|
||
|
}
|