mirror of
https://github.com/Mic92/nix-update.git
synced 2024-11-05 02:16:07 +03:00
23 lines
714 B
Nix
23 lines
714 B
Nix
{
|
|
description = "Swiss-knife for updating nix packages.";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
|
|
|
|
treefmt-nix.url = "github:numtide/treefmt-nix";
|
|
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = inputs @ { flake-parts, ... }:
|
|
flake-parts.lib.mkFlake { inherit inputs; } ({ lib, ... }: {
|
|
imports = [ ./treefmt.nix ];
|
|
systems = lib.systems.flakeExposed;
|
|
perSystem = { config, pkgs, ... }: {
|
|
packages.nix-update = pkgs.callPackage ./. { };
|
|
packages.default = config.packages.nix-update;
|
|
};
|
|
});
|
|
}
|