diff options
-rw-r--r-- | flake.nix | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -96,6 +96,8 @@ | |||
96 | openwrtWithPackages = pkgs.stdenv.mkDerivation { | 96 | openwrtWithPackages = pkgs.stdenv.mkDerivation { |
97 | name = "openwrt-with-packages"; | 97 | name = "openwrt-with-packages"; |
98 | src = openwrt; | 98 | src = openwrt; |
99 | |||
100 | phases = [ "unpackPhase" "patchPhase" "buildPhase" "installPhase" ]; | ||
99 | patchPhase = let | 101 | patchPhase = let |
100 | feedsConf = pkgs.writeText "feeds.conf" '' | 102 | feedsConf = pkgs.writeText "feeds.conf" '' |
101 | src-link packages ${inputs.openwrt-packages} | 103 | src-link packages ${inputs.openwrt-packages} |
@@ -132,6 +134,7 @@ | |||
132 | 134 | ||
133 | buildInputs = with pkgs; [ gcc zlib ]; | 135 | buildInputs = with pkgs; [ gcc zlib ]; |
134 | 136 | ||
137 | phases = [ "unpackPhase" "buildPhase" "installPhase" ]; | ||
135 | sourceRoot = "source/src"; | 138 | sourceRoot = "source/src"; |
136 | buildPhase = '' | 139 | buildPhase = '' |
137 | gcc -lz -o ubnt-mkfwimage ubnt-mkfwimage.c | 140 | gcc -lz -o ubnt-mkfwimage ubnt-mkfwimage.c |