{ lib, stdenv, fetchFromGitHub, rustPlatform, cargo, glib, pkg-config, rustc, wrapGAppsHook3, gdk-pixbuf, gtk3, }: stdenv.mkDerivation rec { pname = "popsicle"; version = "1.3.3"; src = fetchFromGitHub { owner = "pop-os"; repo = "popsicle"; rev = version; hash = "sha256-sWQNav7odvX+peDglLHd7Jrmvhm5ddFBLBla0WK7wcE="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit pname version src; hash = "sha256-KWVX5eOewARccI+ukNfEn8Wc3He1lWXjm9E/Dl0LuM4="; }; nativeBuildInputs = [ cargo glib pkg-config rustPlatform.bindgenHook rustPlatform.cargoSetupHook rustc wrapGAppsHook3 ]; buildInputs = [ gdk-pixbuf gtk3 ]; makeFlags = [ "prefix=$(out)" ]; meta = { description = "Multiple USB File Flasher"; homepage = "https://github.com/pop-os/popsicle"; changelog = "https://github.com/pop-os/popsicle/releases/tag/${version}"; maintainers = with lib.maintainers; [ _13r0ck figsoda ]; license = lib.licenses.mit; platforms = lib.platforms.linux; }; }