diff options
author | Mustafa Çalışkan <musfay@protonmail.com> | 2021-06-01 17:18:22 +0300 |
---|---|---|
committer | Mustafa Çalışkan <musfay@protonmail.com> | 2021-06-02 13:43:52 +0300 |
commit | 3e7a90626e5ff88a0c95d44279d5e3ea3187770e (patch) | |
tree | d0cd7ba9f749fbc9f9d02a8b5e26a0e834ceedea /pkgs/tools/misc/qdl | |
parent | bb253285623b6fc82b7af08e4a4f268c3106cf6a (diff) |
qdl: init at unstable-2021-05-06
Diffstat (limited to 'pkgs/tools/misc/qdl')
-rw-r--r-- | pkgs/tools/misc/qdl/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/misc/qdl/default.nix b/pkgs/tools/misc/qdl/default.nix new file mode 100644 index 0000000000000..79b9cec2ed5c7 --- /dev/null +++ b/pkgs/tools/misc/qdl/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchFromGitHub, libxml2, systemd }: + +stdenv.mkDerivation { + pname = "qdl"; + version = "unstable-2021-05-06"; + + src = fetchFromGitHub { + owner = "andersson"; + repo = "qdl"; + rev = "2021b303a81ca1bcf21b7f1f23674b5c8747646f"; + sha256 = "0akrdca4jjdkfdya36vy1y5vzimrc4pp5jm24rmlw8hbqxvj72ri"; + }; + + buildInputs = [ systemd libxml2 ]; + + installPhase = '' + runHook preInstall + install -Dm755 ./qdl -t $out/bin + runHook postInstall + ''; + + meta = with lib; { + homepage = "https://github.com/andersson/qdl"; + description = "Tool for flashing images to Qualcomm devices"; + license = licenses.bsd3; + maintainers = with maintainers; [ musfay ]; + platforms = platforms.linux; + }; +} |