mirror of
https://github.com/DeterminateSystems/update-flake-lock.git
synced 2025-04-21 09:20:16 +03:00
ci: init, shellcheck job
This commit is contained in:
parent
b7a213c108
commit
a5526c5d9e
4 changed files with 80 additions and 0 deletions
30
flake.nix
Normal file
30
flake.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
description = "update-flake-lock";
|
||||
|
||||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
|
||||
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;
|
||||
});
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue