Flake lock file updates: • Updated input 'flake-utils': 'github:numtide/flake-utils/04c1b180862888302ddfb2e3ad9eaa63afc60cf8' (2022-05-17) → 'github:numtide/flake-utils/cfacdce06f30d2b68473a46042957675eebb3401' (2023-04-11) • Added input 'flake-utils/systems': 'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e' (2023-04-09) • Updated input 'nixpkgs': 'path:/nix/store/yyddvwq452qsvpgb104mllpq0hkkmsqx-source?lastModified=0&narHash=sha256-GNay7yDPtLcRcKCNHldug85AhAvBpTtPEJWSSDYBw8U=' (1970-01-01) → 'path:/nix/store/bbi5840s1wrrg0lf7b63vddfppjbqpyg-source?lastModified=1681041438&narHash=sha256-NmRGMklxBZ8Ol47CKMQxAU1F+v8ySpsHAAiC7ZL4vxY=&rev=48dcbaf7fa799509cbec85d55b8d62dcf1477d57' (2023-04-09)
28 lines
798 B
Nix
28 lines
798 B
Nix
{
|
|
description = "Flake utils demo";
|
|
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let pkgs = nixpkgs.legacyPackages.${system}; in
|
|
rec {
|
|
packages = flake-utils.lib.flattenTree {
|
|
pad-archiver = pkgs.callPackage ./nix { pkgs = pkgs; };
|
|
gitAndTools = pkgs.gitAndTools;
|
|
};
|
|
defaultPackage = packages.pad-archiver;
|
|
apps.pad-archiver = flake-utils.lib.mkApp { drv = packages.pad-archiver; };
|
|
defaultApp = apps.pad-archiver;
|
|
devShell = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
go
|
|
gopls
|
|
gotools
|
|
go-tools
|
|
gopls
|
|
];
|
|
};
|
|
}
|
|
);
|
|
}
|