nixpkgs/pkgs/tools/security/decoder/default.nix

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

40 lines
786 B
Nix
Raw Normal View History

2021-09-27 15:17:46 +00:00
{ lib
, stdenv
, fetchFromGitHub
, openssl
}:
stdenv.mkDerivation rec {
pname = "decoder";
version = "unstable-2021-11-20";
src = fetchFromGitHub {
owner = "PeterPawn";
repo = "decoder";
rev = "da0f826629d4e7b873f9d1a39f24c50ff0a68cd2";
sha256 = "sha256-1sT1/iwtc2ievmLuNuooy9b14pTs1ZC5noDwzFelk7w=";
};
buildInputs = [
openssl
];
makeFlags = [ "OPENSSL=y" ];
installPhase = ''
runHook preInstall
install -Dm755 src/decoder "$out/bin/decoder"
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/PeterPawn/decoder";
description = ''"secrets" decoding for FRITZ!OS devices'';
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ Luflosi ];
};
}