2021-11-30 17:58:54 +01:00
|
|
|
{
|
|
|
|
description = "update-flake-lock";
|
|
|
|
|
2023-10-10 22:11:45 +02:00
|
|
|
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.533189.tar.gz";
|
2021-11-30 17:58:54 +01:00
|
|
|
|
|
|
|
outputs =
|
|
|
|
{ self
|
|
|
|
, nixpkgs
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
nameValuePair = name: value: { inherit name value; };
|
|
|
|
genAttrs = names: f: builtins.listToAttrs (map (n: nameValuePair n (f n)) names);
|
|
|
|
|
|
|
|
allSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
|
|
|
forAllSystems = f: genAttrs allSystems
|
|
|
|
(system: f {
|
|
|
|
inherit system;
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
});
|
|
|
|
in
|
|
|
|
{
|
|
|
|
devShell = forAllSystems
|
|
|
|
({ system, pkgs, ... }:
|
|
|
|
pkgs.stdenv.mkDerivation {
|
|
|
|
name = "update-flake-lock-devshell";
|
|
|
|
buildInputs = [ pkgs.shellcheck ];
|
|
|
|
src = self;
|
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|