default.nix (2251B)
1 # This file defines overlays 2 { 3 inputs, 4 pkgs, 5 ... 6 }: { 7 # This one brings our custom packages from the 'pkgs' directory 8 additions = final: _prev: import ../pkgs {pkgs = final;}; 9 10 # This one contains whatever you want to overlay 11 # You can change versions, add patches, set compilation flags, anything really. 12 # https://nixos.wiki/wiki/Overlays 13 modifications = final: prev: { 14 # example = prev.example.overrideAttrs (oldAttrs: rec { 15 # ... 16 # }); 17 asterisk = prev.asterisk.overrideAttrs (old: { 18 preBuild = '' 19 #cat third-party/pjproject/source/pjlib-util/src/pjlib-util/scanner.c 20 make menuselect.makeopts 21 cat menuselect.makeopts 22 ./menuselect/menuselect --enable cdr_pgsql menuselect.makeopts 23 ./menuselect/menuselect --enable cel_pgsql menuselect.makeopts 24 cat menuselect.makeopts 25 substituteInPlace menuselect.makeopts --replace 'codec_opus_open_source ' "" 26 substituteInPlace menuselect.makeopts --replace 'format_ogg_opus_open_source ' "" 27 ''; 28 buildInputs = old.buildInputs ++ [pkgs.postgresql]; 29 }); 30 pgbouncer = prev.pgbouncer.overrideAttrs (old: { 31 src = pkgs.fetchFromGitHub { 32 owner = "pgbouncer"; 33 repo = "pgbouncer"; 34 rev = "60708022d5b934fa53c51849b9f02d87a7881b11"; 35 fetchSubmodules = true; 36 hash = "sha256-ojZ23n8Bq4288yna9RVhDvZe+AcPEInG93z7/o3uQwY="; 37 }; 38 39 nativeBuildInputs = [pkgs.python312 pkgs.pandoc pkgs.libevent pkgs.libtool pkgs.autoconf pkgs.automake pkgs.openssl pkgs.pkg-config pkgs.autoreconfHook]; 40 41 autoreconfPhase = '' 42 ./autogen.sh 43 ''; 44 }); 45 46 apipkg = prev.apipkg.overrideAttrs (old: { 47 disabledTestPaths = [ 48 # ModuleNotFoundError: No module named '_xyz' 49 "test_apipkg.py" 50 ]; 51 pytestFlagsArray = []; 52 doCheck = false; 53 }); 54 55 sqlalchemy = prev.sqlalchemy.overrideAttrs (old: { 56 doCheck = false; 57 }); 58 }; 59 60 # When applied, the unstable nixpkgs set (declared in the flake inputs) will 61 # be accessible through 'pkgs.unstable' 62 unstable-packages = final: _prev: { 63 unstable = import inputs.nixpkgs-unstable { 64 system = final.system; 65 config.allowUnfree = true; 66 }; 67 }; 68 }