diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-01-07 16:59:59 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-01-07 16:59:59 +0100 |
commit | f12b20fe58c850e3bdb1996b4ac14badc8469d2d (patch) | |
tree | 67c10586fc554ef022fa8d640b074792f41160a3 /flake.nix | |
parent | 799d882842d5263813840e2dfe1aa098634fa376 (diff) | |
download | ap01-f12b20fe58c850e3bdb1996b4ac14badc8469d2d.tar ap01-f12b20fe58c850e3bdb1996b4ac14badc8469d2d.tar.gz ap01-f12b20fe58c850e3bdb1996b4ac14badc8469d2d.tar.bz2 ap01-f12b20fe58c850e3bdb1996b4ac14badc8469d2d.tar.xz ap01-f12b20fe58c850e3bdb1996b4ac14badc8469d2d.zip |
...
Diffstat (limited to 'flake.nix')
-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 |