nix-update/flake.nix

23 lines
714 B
Nix
Raw Normal View History

2020-08-17 10:41:53 +03:00
{
description = "Swiss-knife for updating nix packages.";
2023-05-20 10:11:53 +03:00
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
2020-08-17 10:41:53 +03:00
2023-08-12 14:59:52 +03:00
treefmt-nix.url = "github:numtide/treefmt-nix";
2023-05-20 10:11:53 +03:00
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
};
2022-12-30 21:43:02 +03:00
2023-05-20 10:11:53 +03:00
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;
2020-12-01 12:31:29 +03:00
};
2020-08-17 10:41:53 +03:00
});
}