# Help in overlays

**URL:** https://discourse.nixos.org/t/help-in-overlays/34539
**Category:** Help
**Created:** [October 24, 2023, 9:51am UTC](https://discourse.nixos.org/t/help-in-overlays/34539 "2023-10-24T09:51:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![simpleboy0](https://discourse.nixos.org/user_avatar/discourse.nixos.org/simpleboy0/32/11558_2.png) [@simpleboy0](https://discourse.nixos.org/u/simpleboy0)
#### Post date: [October 24, 2023, 9:51am UTC](https://discourse.nixos.org/t/help-in-overlays/34539/1 "2023-10-24T09:51:50Z")

</div>

My overlay does not seem to work on this flake. Tests for the overlayed package are still running. Any ideas how to write this better?

```auto
{
 inputs = {

 nixpkgs.url = github:NixOS/nixpkgs/nixos-23.05;
 firmware = {
 url = "github:raspberrypi/firmware";
 flake = false;
 };
 };

 outputs = { self, nixpkgs, firmware }:
 let
 overlays = [ (self: super: {
 libxcrypt = super.libxcrypt.overrideAttrs (old: { doCheck = false; });
 pcre = super.pcre.overrideAttrs (old: { doCheck = false; });
 rhash = super.rhash.overrideAttrs (old: { doCheck = false; });
 libuv = super.libuv.overrideAttrs (old: { doCheck = false; });
 dejagnu = super.dejagnu.overrideAttrs (old: { doCheck = false; });
 meson = super.meson.overrideAttrs (old: { doCheck = false; });
 })];
 pkgs = import <nixpkgs> { inherit overlays; config = {}; };
 in
 {
 packages.armv7l-linux = let
 platforms = (import <nixpkgs> { inherit overlays; config = {}; }).platforms;
 in {
 rpi_image = (import ./default.nix {
 extraModules = [
 ./rpi_image.nix
 { system.build.rpi_firmware = firmware; }
 ];
 platform = system: platforms.raspberrypi2;
 system = "armv7l-linux";
 inherit nixpkgs;
 }).config.system.build.rpi_image;
 };
 };
}

```
