nix-config/overlay/bmxd.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
706 B
Nix
Raw Normal View History

2021-02-26 20:22:15 +01:00
{ stdenv, fetchgit, fetchpatch, }:
2020-04-05 02:31:57 +02:00
stdenv.mkDerivation {
pname = "bmxd";
2020-04-05 02:31:57 +02:00
version = "0.4-1"; # ${version}-${release}
2022-06-12 17:26:32 +02:00
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
patches = [
(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=";
2022-06-12 17:26:32 +02:00
})
];
2021-01-06 18:24:57 +01:00
buildPhase = ''
cd feeds/19.07/feeds-own/bmxd/sources
2020-04-05 02:31:57 +02:00
'';
2022-06-12 17:26:32 +02:00
installFlags = [
2022-06-13 19:21:19 +02:00
"SBINDIR=${placeholder "out"}/sbin"
2022-06-12 17:26:32 +02:00
];
2020-04-05 02:31:57 +02:00
}