1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 04:51:31 +03:00
mobile-nixos/overlay/dtbtool-exynos/default.nix
2021-02-02 05:51:18 -05:00

36 lines
598 B
Nix

{ stdenv
, lib
, fetchFromGitHub
, dtc
}:
stdenv.mkDerivation {
pname = "dtbtool";
version = "2020-09-14";
src = fetchFromGitHub {
owner = "dsankouski";
repo = "dtbtool-exynos";
rev = "ccfd4c628818745c72835bb02f324143ee9dff48";
sha256 = "15p8piczd1f4569ps5nqbf303s7x1cnq1a86l7kddn98jlif73h4";
};
patches = [
./0001-Fix-hardcoded-library-location.patch
];
buildInputs = [
dtc
];
installPhase = ''
mkdir -p $out/bin
mv dtbTool-exynos $out/bin/
chmod +x $out/bin/dtbTool-exynos
'';
meta = with lib; {
license = licenses.bsd3;
};
}