From f9edbf2dc3472c7407773535e2e5ee4d8570372f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Sat, 30 Apr 2022 13:08:29 +0200 Subject: [PATCH] :rocket: add nixpkgs-review --- flake.lock | 123 +++++++++++++++++++++++++++++++++++++++- flake.nix | 2 + modules/cli/default.nix | 2 + overlays/default.nix | 1 + 4 files changed, 126 insertions(+), 2 deletions(-) diff --git a/flake.lock b/flake.lock index 5ece923..95e0c59 100644 --- a/flake.lock +++ b/flake.lock @@ -124,7 +124,38 @@ "type": "github" } }, + "flake-compat": { + "flake": false, + "locked": { + "lastModified": 1641205782, + "narHash": "sha256-4jY7RCWUoZ9cKD8co0/4tFARpWB+57+r1bLLvXNJliY=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "b7547d3eed6f32d06102ead8991ec52ab0a4f1a7", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, "flake-utils": { + "locked": { + "lastModified": 1649676176, + "narHash": "sha256-OWKJratjt2RW151VUlJPRALb7OU2S5s+f0vLj4o1bHM=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "a4b154ebbdc88c8498a5c7b01589addc9e9cb678", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "flake-utils_2": { "locked": { "lastModified": 1644229661, "narHash": "sha256-1YdnJAsNy69bpcjuoKdOYQX0YxZBiCYZo4Twxerqv7k=", @@ -209,6 +240,27 @@ "type": "github" } }, + "naersk": { + "inputs": { + "nixpkgs": [ + "nixpkgs-review-checks", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1650265945, + "narHash": "sha256-SO8+1db4jTOjnwP++29vVgImLIfETSXyoz0FuLkiikE=", + "owner": "nix-community", + "repo": "naersk", + "rev": "e8f9f8d037774becd82fce2781e1abdb7836d7df", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "naersk", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1638587357, @@ -225,6 +277,57 @@ "type": "github" } }, + "nixpkgs-hammering": { + "inputs": { + "flake-compat": "flake-compat", + "naersk": [ + "nixpkgs-review-checks", + "naersk" + ], + "nixpkgs": [ + "nixpkgs-review-checks", + "nixpkgs" + ], + "utils": [ + "nixpkgs-review-checks", + "flake-utils" + ] + }, + "locked": { + "lastModified": 1647744458, + "narHash": "sha256-DK1kfMVS88eqYAnIjvYMInECVuWCe4MUTtUIpVhLQGk=", + "owner": "jtojnar", + "repo": "nixpkgs-hammering", + "rev": "0c54b7121a21f79e580773a46fc8d51482dc1d1c", + "type": "github" + }, + "original": { + "owner": "jtojnar", + "repo": "nixpkgs-hammering", + "type": "github" + } + }, + "nixpkgs-review-checks": { + "inputs": { + "flake-utils": "flake-utils", + "naersk": "naersk", + "nixpkgs": "nixpkgs_4", + "nixpkgs-hammering": "nixpkgs-hammering" + }, + "locked": { + "lastModified": 1650972245, + "narHash": "sha256-ierkAyTWOCpMBWIpH8Fy6VGnNdqFugZkQnKqMGWJcxM=", + "owner": "SuperSandro2000", + "repo": "nixpkgs-review-checks", + "rev": "0e94cb24f60cfbc8c3aed6bb5dcd6a86dd4b4648", + "type": "github" + }, + "original": { + "owner": "SuperSandro2000", + "repo": "nixpkgs-review-checks", + "type": "github" + } + }, "nixpkgs_2": { "locked": { "lastModified": 1650647760, @@ -256,6 +359,21 @@ } }, "nixpkgs_4": { + "locked": { + "lastModified": 1650760898, + "narHash": "sha256-r1rzTgwi1FKx5t3KKi7Xt4hyGdOnTD0RSTpbNls09KU=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "0f1f92d85be76e0bd79ebb2285be8f43683eb845", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_5": { "locked": { "lastModified": 1645013224, "narHash": "sha256-b7OEC8vwzJv3rsz9pwnTX2LQDkeOWz2DbKypkVvNHXc=", @@ -298,6 +416,7 @@ "home-manager": "home-manager", "master": "master", "nixpkgs": "nixpkgs_3", + "nixpkgs-review-checks": "nixpkgs-review-checks", "nur": "nur", "stable": "stable", "statix": "statix", @@ -341,7 +460,7 @@ "inputs": { "fenix": "fenix", "gitignore": "gitignore", - "nixpkgs": "nixpkgs_4" + "nixpkgs": "nixpkgs_5" }, "locked": { "lastModified": 1645337357, @@ -359,7 +478,7 @@ }, "utils": { "inputs": { - "flake-utils": "flake-utils" + "flake-utils": "flake-utils_2" }, "locked": { "lastModified": 1647259887, diff --git a/flake.nix b/flake.nix index f92836c..8c9e6cf 100644 --- a/flake.nix +++ b/flake.nix @@ -19,6 +19,8 @@ statix.url = "github:nerdypepper/statix"; + nixpkgs-review-checks.url = "github:SuperSandro2000/nixpkgs-review-checks"; + # Fish specific dracula-fish = { url = "github:dracula/fish"; diff --git a/modules/cli/default.nix b/modules/cli/default.nix index 50b23a8..7343523 100644 --- a/modules/cli/default.nix +++ b/modules/cli/default.nix @@ -49,6 +49,8 @@ emacs = editor; + nixpkgs-review = "nixpkgs-review-checks"; + nixpkgs-pr = "nixpkgs-review pr --token ${ if (config.modules.cli.shell.name == "fish") then "" else "$" }(cat /run/agenix/github)"; diff --git a/overlays/default.nix b/overlays/default.nix index 56a2ff0..8590b06 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -2,6 +2,7 @@ final: prev: { python-dev = import ./python.nix final prev; + nixpkgs-review = inputs.nixpkgs-review-checks.defaultPackage."${prev.system}"; master = import inputs.master { inherit (prev) system; config.allowUnfree = true;