2022-12-16 13:31:39 +00:00
|
|
|
{
|
|
|
|
description = "A very basic flake";
|
|
|
|
|
2022-12-16 14:17:03 +00:00
|
|
|
inputs.melt = {
|
|
|
|
url = "sourcehut:~remexre/melt.nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.flake-utils.follows = "flake-utils";
|
|
|
|
};
|
2022-12-16 13:31:39 +00:00
|
|
|
|
|
|
|
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 {
|
2023-01-01 18:46:40 +00:00
|
|
|
ableGo = pkgs.callPackage ./. {
|
2022-12-16 13:31:39 +00:00
|
|
|
inherit (melt.legacyPackages.${system}) mkSilverBin;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in rec {
|
2023-01-01 18:46:40 +00:00
|
|
|
defaultPackage = packages.ableGo;
|
2022-12-16 13:31:39 +00:00
|
|
|
|
|
|
|
packages = flake-utils.lib.flattenTree flakePkgs;
|
|
|
|
|
2022-12-16 14:17:03 +00:00
|
|
|
devShell = pkgs.mkShell {
|
2023-01-01 18:46:40 +00:00
|
|
|
inputsFrom = with packages; [ ableGo ];
|
2022-12-16 14:17:03 +00:00
|
|
|
packages = with pkgs; [ go ];
|
|
|
|
};
|
2022-12-16 13:31:39 +00:00
|
|
|
});
|
|
|
|
}
|