nix-config/overlay/bmxd.nix

27 lines
739 B
Nix
Raw Permalink Normal View History

2021-02-26 20:22:15 +01:00
{ stdenv, fetchgit, fetchpatch, }:
2020-04-05 02:31:57 +02:00
let
2021-02-26 20:22:15 +01:00
src = fetchgit {
url = "https://gitlab.freifunk-dresden.de/firmware-developer/firmware.git";
2021-03-04 18:27:03 +01:00
rev = "T_FIRMWARE_7.0.1";
2021-02-26 20:22:15 +01:00
sha256 = "sha256-3sV59uqFp+TZKrDf7kmksLvz+5ZKriwFyXZMBH2Sdws=";
};
2021-01-06 18:24:57 +01:00
path = "feeds/19.07/feeds-own/bmxd";
2021-02-26 20:22:15 +01:00
patch = fetchpatch {
name = "timercpy.patch";
2021-02-22 11:45:12 +01:00
url =
"https://gitlab.freifunk-dresden.de/firmware-developer/firmware/merge_requests/36.patch";
2021-02-26 20:22:15 +01:00
sha256 = "sha256-40BbcCZ10cQzvkfsAi8ApCgmC4hGMh2J8xU6gjD3cng=";
2021-01-06 18:24:57 +01:00
};
2020-04-05 02:31:57 +02:00
in stdenv.mkDerivation {
pname = "bmxd";
version = "0.4-1"; # ${version}-${release}
2021-01-06 18:24:57 +01:00
inherit src;
patches = [ patch ];
buildPhase = "cd ${path}/sources";
2020-04-05 02:31:57 +02:00
installPhase = ''
make install SBINDIR=$out/sbin
'';
}